summaryrefslogtreecommitdiffhomepage
path: root/tests/test_client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 19:36:00 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 19:36:00 -0400
commit538caf59df45c3a8b798ea82d3236faad34163a2 (patch)
treee6a7f7e6be9b04dafc222ac77025944f609147c3 /tests/test_client.py
parentd38cc3b9f528fb2df2d9ed6c0c7d0534d3103356 (diff)
Rename to disableD_algorithms everywhere for consistency
Having it feel verb-y isn't that much better than the alternative, and consistency is a nice hobgoblin
Diffstat (limited to 'tests/test_client.py')
-rw-r--r--tests/test_client.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index f40c38c1..ad5c36ad 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -656,19 +656,19 @@ class SSHClientTest(ClientTest):
assert isinstance(client._policy, paramiko.AutoAddPolicy)
@patch("paramiko.client.Transport")
- def test_disable_algorithms_defaults_to_None(self, Transport):
+ def test_disabled_algorithms_defaults_to_None(self, Transport):
SSHClient().connect("host", sock=Mock(), password="no")
- assert Transport.call_args[1]["disable_algorithms"] is None
+ assert Transport.call_args[1]["disabled_algorithms"] is None
@patch("paramiko.client.Transport")
- def test_disable_algorithms_passed_directly_if_given(self, Transport):
+ def test_disabled_algorithms_passed_directly_if_given(self, Transport):
SSHClient().connect(
"host",
sock=Mock(),
password="no",
- disable_algorithms={"keys": ["ssh-dss"]},
+ disabled_algorithms={"keys": ["ssh-dss"]},
)
- call_arg = Transport.call_args[1]["disable_algorithms"]
+ call_arg = Transport.call_args[1]["disabled_algorithms"]
assert call_arg == {"keys": ["ssh-dss"]}