add test to verify that 'for x in hostkeys' works
This commit is contained in:
parent
862e1f48e3
commit
ece62093bd
|
@ -82,3 +82,8 @@ class HostKeysTest (unittest.TestCase):
|
||||||
self.assertTrue(x is not None)
|
self.assertTrue(x is not None)
|
||||||
fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint())
|
fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint())
|
||||||
self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp)
|
self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp)
|
||||||
|
i = 0
|
||||||
|
for key in hostdict:
|
||||||
|
i += 1
|
||||||
|
self.assertEquals(2, i)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue