diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-09-05 19:39:02 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-09-05 19:39:02 -0700 |
commit | 689ac4d9c6a30eccfba21d068239dc5b06c16bc4 (patch) | |
tree | 24276b3147bf92489fcdb4f8c3ff2c234d52b625 /tests/test_client.py | |
parent | dd0c618ea02024e06806ab99c79fcff8affeba03 (diff) |
Add a couple more permutations
Diffstat (limited to 'tests/test_client.py')
-rw-r--r-- | tests/test_client.py | 3 |
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=[ |