[Python-checkins] CVS: python/dist/src/Lib/test test_hmac.py,1.3,1.4 test_httplib.py,1.3,1.4
Neal Norwitz
nnorwitz@users.sourceforge.net
Mon, 01 Apr 2002 11:00:53 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv4496
Modified Files:
test_hmac.py test_httplib.py
Log Message:
Use attributes appropriately
Index: test_hmac.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hmac.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_hmac.py 13 Nov 2001 21:51:26 -0000 1.3
--- test_hmac.py 1 Apr 2002 19:00:50 -0000 1.4
***************
*** 64,68 ****
h2 = h.copy()
except:
! fail("Exception raised during normal usage of HMAC class.")
class CopyTestCase(unittest.TestCase):
--- 64,68 ----
h2 = h.copy()
except:
! self.fail("Exception raised during normal usage of HMAC class.")
class CopyTestCase(unittest.TestCase):
Index: test_httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_httplib.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_httplib.py 24 Mar 2002 16:54:16 -0000 1.3
--- test_httplib.py 1 Apr 2002 19:00:50 -0000 1.4
***************
*** 9,13 ****
def makefile(self, mode, bufsize=None):
if mode != 'r' and mode != 'rb':
! raise UnimplementedFileMode()
return StringIO.StringIO(self.text)
--- 9,13 ----
def makefile(self, mode, bufsize=None):
if mode != 'r' and mode != 'rb':
! raise httplib.UnimplementedFileMode()
return StringIO.StringIO(self.text)