add test to verify that 'for x in hostkeys' works
This commit is contained in:
Robey Pointer 2006-03-11 20:06:33 -08:00
parent 862e1f48e3
commit ece62093bd
1 changed files with 5 additions and 0 deletions

View File

@ -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)