From 074dc36e6b277b5ffc6ac910fdc11934e38959f4 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Tue, 1 Aug 2006 11:21:43 -0700 Subject: [project @ robey@lag.net-20060801182143-088ff687e0945937] use hexlify in tests --- tests/test_sftp.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_sftp.py') 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') -- cgit v1.2.3