diff options
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index c99c1c91..36da2bf3 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -22,6 +22,7 @@ Some unit tests for utility functions. """ +from binascii import hexlify import cStringIO import os import unittest @@ -97,7 +98,7 @@ class UtilTest (unittest.TestCase): self.assertEquals(2, len(hostdict)) self.assertEquals(1, len(hostdict.values()[0])) self.assertEquals(1, len(hostdict.values()[1])) - fp = paramiko.util.hexify(hostdict['secure.example.com']['ssh-rsa'].get_fingerprint()) + fp = hexlify(hostdict['secure.example.com']['ssh-rsa'].get_fingerprint()).upper() self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp) finally: os.unlink('hostfile.temp') |