diff options
author | Robey Pointer <robey@lag.net> | 2006-08-01 11:21:43 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-08-01 11:21:43 -0700 |
commit | 074dc36e6b277b5ffc6ac910fdc11934e38959f4 (patch) | |
tree | 95f9e7cfd2e0f56fed7598cf2af966162e9ea001 /tests/test_util.py | |
parent | 7ac433a6ac7b2cdf8608e8571102d599a15febde (diff) |
[project @ robey@lag.net-20060801182143-088ff687e0945937]
use hexlify in tests
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') |