Skip to content

Commit

Permalink
Add a couple more permutations
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Sep 6, 2014
1 parent dd0c618 commit 689ac4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,12 @@ def test_3_multiple_key_files(self):
'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=[
Expand Down

0 comments on commit 689ac4d

Please sign in to comment.