From 538caf59df45c3a8b798ea82d3236faad34163a2 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 21 Jun 2019 19:36:00 -0400 Subject: 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 --- tests/test_client.py | 10 +++++----- tests/test_transport.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') 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"], -- cgit v1.2.3