summaryrefslogtreecommitdiffhomepage
path: root/tests/test_client.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-09-05 19:39:02 -0700
committerJeff Forcier <jeff@bitprophet.org>2014-09-05 19:39:02 -0700
commit689ac4d9c6a30eccfba21d068239dc5b06c16bc4 (patch)
tree24276b3147bf92489fcdb4f8c3ff2c234d52b625 /tests/test_client.py
parentdd0c618ea02024e06806ab99c79fcff8affeba03 (diff)
Add a couple more permutations
Diffstat (limited to 'tests/test_client.py')
-rw-r--r--tests/test_client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index ae10b814..a1ef490c 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -185,9 +185,12 @@ class SSHClientTest (unittest.TestCase):
'ecdsa': 'ecdsa-sha2-nistp256',
}
# Various combos of attempted & valid keys
+ # TODO: try every possible combo using itertools functions
for attempt, accept in (
(['rsa', 'dss'], ['dss']), # Original test #3
(['dss', 'rsa'], ['dss']), # Ordering matters sometimes, sadly
+ (['dss', 'rsa', 'ecdsa'], ['dss']), # Try ECDSA but fail
+ (['rsa', 'ecdsa'], ['ecdsa']), # ECDSA success
):
self._test_connection(
key_filename=[