diff options
author | Scott Maxwell <scott@codecobblers.com> | 2013-10-30 16:46:33 -0700 |
---|---|---|
committer | Scott Maxwell <scott@codecobblers.com> | 2013-10-30 16:46:33 -0700 |
commit | 2ea352b8baf1037bd22fc79146ef646c163a7692 (patch) | |
tree | 439892d24b7659bb4345790af09582aaa0162377 /tests/test_util.py | |
parent | 6bd1e42b43017c8df3edd826fad5aca798538b10 (diff) |
Fix dict iters, sorts, exceptions, bytes renames and tuple args
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index 12575f84..7e656df8 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -65,7 +65,7 @@ class UtilTest(ParamikoTest): """ verify that all the classes can be imported from paramiko. """ - symbols = globals().keys() + symbols = list(globals().keys()) self.assertTrue('Transport' in symbols) self.assertTrue('SSHClient' in symbols) self.assertTrue('MissingHostKeyPolicy' in symbols) @@ -148,8 +148,8 @@ class UtilTest(ParamikoTest): try: hostdict = paramiko.util.load_host_keys('hostfile.temp') self.assertEquals(2, len(hostdict)) - self.assertEquals(1, len(hostdict.values()[0])) - self.assertEquals(1, len(hostdict.values()[1])) + self.assertEquals(1, len(list(hostdict.values())[0])) + self.assertEquals(1, len(list(hostdict.values())[1])) fp = hexlify(hostdict['secure.example.com']['ssh-rsa'].get_fingerprint()).upper() self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp) finally: |