diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2019-06-21 19:36:00 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2019-06-21 19:36:00 -0400 |
commit | 538caf59df45c3a8b798ea82d3236faad34163a2 (patch) | |
tree | e6a7f7e6be9b04dafc222ac77025944f609147c3 /tests | |
parent | d38cc3b9f528fb2df2d9ed6c0c7d0534d3103356 (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')
-rw-r--r-- | tests/test_client.py | 10 | ||||
-rw-r--r-- | tests/test_transport.py | 2 |
2 files changed, 6 insertions, 6 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"]} diff --git a/tests/test_transport.py b/tests/test_transport.py index f4e824d0..9612ada7 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -1115,7 +1115,7 @@ class AlgorithmDisablingTests(unittest.TestCase): def test_preferred_lists_filter_disabled_algorithms(self): t = Transport( sock=Mock(), - disable_algorithms={ + disabled_algorithms={ "ciphers": ["aes128-cbc"], "macs": ["hmac-md5"], "keys": ["ssh-dss"], |