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_sftp.py | |
parent | 7ac433a6ac7b2cdf8608e8571102d599a15febde (diff) |
[project @ robey@lag.net-20060801182143-088ff687e0945937]
use hexlify in tests
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 3377621e..1e2785d1 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -23,6 +23,7 @@ a real actual sftp server is contacted, and a new folder is created there to do test file operations in (so no existing files will be harmed). """ +from binascii import hexlify import logging import os import random @@ -589,12 +590,12 @@ class SFTPTest (unittest.TestCase): try: f = sftp.open(FOLDER + '/kitty.txt', 'r') sum = f.check('sha1') - self.assertEquals('91059CFC6615941378D413CB5ADAF4C5EB293402', paramiko.util.hexify(sum)) + self.assertEquals('91059CFC6615941378D413CB5ADAF4C5EB293402', hexlify(sum).upper()) sum = f.check('md5', 0, 512) - self.assertEquals('93DE4788FCA28D471516963A1FE3856A', paramiko.util.hexify(sum)) + self.assertEquals('93DE4788FCA28D471516963A1FE3856A', hexlify(sum).upper()) sum = f.check('md5', 0, 0, 510) self.assertEquals('EB3B45B8CD55A0707D99B177544A319F373183D241432BB2157AB9E46358C4AC90370B5CADE5D90336FC1716F90B36D6', - paramiko.util.hexify(sum)) + hexlify(sum).upper()) f.close() finally: sftp.unlink(FOLDER + '/kitty.txt') |