summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2019-06-21 20:41:46 -0400
committerJeff Forcier <jeff@bitprophet.org>2019-06-21 20:41:46 -0400
commitdccc563c3a581a14ceaa261b5fe0d08539f84b87 (patch)
tree9f69145d279208686e39ac69ce988538ae718ac3 /tests
parent4aecbe2f9bb150a25e564cc47a556da8849305c6 (diff)
Extend new algorithm disabling to compressions
Diffstat (limited to 'tests')
-rw-r--r--tests/test_transport.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_transport.py b/tests/test_transport.py
index 28f30d63..e2174896 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -1139,8 +1139,12 @@ class AlgorithmDisablingTests(unittest.TestCase):
"macs": ["hmac-md5"],
"keys": ["ssh-dss"],
"kex": ["diffie-hellman-group14-sha256"],
+ "compression": ["zlib"],
},
)
+ # Enable compression cuz otherwise disabling one option for it makes no
+ # sense...
+ t.use_compression(True)
# Effectively a random spot check, but kex init touches most/all of the
# algorithm lists so it's a good spot.
t._send_message = Mock()
@@ -1164,3 +1168,4 @@ class AlgorithmDisablingTests(unittest.TestCase):
assert "hmac-md5" not in macs
assert "ssh-dss" not in server_keys
assert "diffie-hellman-group14-sha256" not in kexen
+ assert "zlib" not in compressions