Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpotts committed Oct 15, 2024
1 parent 5f68f33 commit 92fd598
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,48 +133,48 @@ class TestClient:
#
# assert 100 == ak.get_mem_used(as_percent=True) + ak.get_mem_avail(as_percent=True)

def test_no_op(self):
"""
Tests the ak.client._no_op method
:return: None
:raise: AssertionError if return message is not 'noop'
"""
assert "noop" == ak.client._no_op()

def test_ruok(self):
"""
Tests the ak.client.ruok method
:return: None
:raise: AssertionError if return message is not 'imok'
"""
assert "imok" == ak.client.ruok()

def test_client_configuration(self):
"""
Tests the ak.client.set_defaults() method as well as set/get
parrayIterThresh, maxTransferBytes, and verbose config params.
"""
ak.client.pdarrayIterThresh = 50
ak.client.maxTransferBytes = 1048576000
ak.client.verbose = True
assert 50 == ak.client.pdarrayIterThresh
assert 1048576000 == ak.client.maxTransferBytes
assert ak.client.verbose
ak.client.set_defaults()
assert 100 == ak.client.pdarrayIterThresh
assert 1073741824 == ak.client.maxTransferBytes
assert not ak.client.verbose

def test_client_get_server_commands(self):
"""
Tests the ak.client.get_server_commands() method contains an expected
sample of commands.
"""
cmds = ak.client.get_server_commands()
for cmd in ["connect", "info", "str"]:
assert cmd in cmds
# def test_no_op(self):
# """
# Tests the ak.client._no_op method
#
# :return: None
# :raise: AssertionError if return message is not 'noop'
# """
# assert "noop" == ak.client._no_op()
#
# def test_ruok(self):
# """
# Tests the ak.client.ruok method
#
# :return: None
# :raise: AssertionError if return message is not 'imok'
# """
# assert "imok" == ak.client.ruok()
#
# def test_client_configuration(self):
# """
# Tests the ak.client.set_defaults() method as well as set/get
# parrayIterThresh, maxTransferBytes, and verbose config params.
# """
# ak.client.pdarrayIterThresh = 50
# ak.client.maxTransferBytes = 1048576000
# ak.client.verbose = True
# assert 50 == ak.client.pdarrayIterThresh
# assert 1048576000 == ak.client.maxTransferBytes
# assert ak.client.verbose
# ak.client.set_defaults()
# assert 100 == ak.client.pdarrayIterThresh
# assert 1073741824 == ak.client.maxTransferBytes
# assert not ak.client.verbose
#
# def test_client_get_server_commands(self):
# """
# Tests the ak.client.get_server_commands() method contains an expected
# sample of commands.
# """
# cmds = ak.client.get_server_commands()
# for cmd in ["connect", "info", "str"]:
# assert cmd in cmds

def test_client_nd_unimplemented_error(self):
"""
Expand Down

0 comments on commit 92fd598

Please sign in to comment.