From ece62093bd426899b60e83a62451465629b8b90f Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Sat, 11 Mar 2006 20:06:33 -0800 Subject: [PATCH] [project @ robey@lag.net-20060312040633-92b1c78bf815905d] add test to verify that 'for x in hostkeys' works --- tests/test_hostkeys.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_hostkeys.py b/tests/test_hostkeys.py index 6f8eb57..4eb46d3 100644 --- a/tests/test_hostkeys.py +++ b/tests/test_hostkeys.py @@ -82,3 +82,8 @@ class HostKeysTest (unittest.TestCase): self.assertTrue(x is not None) fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint()) self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp) + i = 0 + for key in hostdict: + i += 1 + self.assertEquals(2, i) +