summaryrefslogtreecommitdiffhomepage
path: root/tests/test_hostkeys.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_hostkeys.py')
-rw-r--r--tests/test_hostkeys.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_hostkeys.py b/tests/test_hostkeys.py
index e9580ddf..24303570 100644
--- a/tests/test_hostkeys.py
+++ b/tests/test_hostkeys.py
@@ -105,13 +105,12 @@ class HostKeysTest (unittest.TestCase):
'ssh-dss': key_dss
}
hostdict['fake.example.com'] = {}
- # this line will have no effect, but at least shouldn't crash:
hostdict['fake.example.com']['ssh-rsa'] = key
self.assertEquals(3, len(hostdict))
self.assertEquals(2, len(hostdict.values()[0]))
self.assertEquals(1, len(hostdict.values()[1]))
- self.assertEquals(0, len(hostdict.values()[2]))
+ self.assertEquals(1, len(hostdict.values()[2]))
fp = hexlify(hostdict['secure.example.com']['ssh-rsa'].get_fingerprint()).upper()
self.assertEquals('7EC91BB336CB6D810B124B1353C32396', fp)
fp = hexlify(hostdict['secure.example.com']['ssh-dss'].get_fingerprint()).upper()