diff options
author | Robey Pointer <robey@lag.net> | 2006-11-11 21:56:17 -0800 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-11-11 21:56:17 -0800 |
commit | e2d83576224825d6a727d7675da6f712d354ad50 (patch) | |
tree | fd679cd888451040c7651f2dc4f0afdee0f7a6c9 /tests/test_hostkeys.py | |
parent | bee3535484c8d8a2005b5f3b6bd3b20ac4ab3edb (diff) |
[project @ robey@lag.net-20061112055617-098a150cf051bffa]
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
Diffstat (limited to 'tests/test_hostkeys.py')
-rw-r--r-- | tests/test_hostkeys.py | 3 |
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() |