[Python-checkins] python/dist/src/Lib/test test_urllib2.py, 1.19, 1.20

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Thu Jul 14 08:40:49 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25167/Lib/test

Modified Files:
	test_urllib2.py 
Log Message:
RFE [ 1216944 ] Add Error Code Dictionary to urllib2



Index: test_urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_urllib2.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- test_urllib2.py	7 Aug 2004 17:40:50 -0000	1.19
+++ test_urllib2.py	14 Jul 2005 06:40:47 -0000	1.20
@@ -40,6 +40,10 @@
 
         buf = f.read()
         f.close()
+        
+    def test_statudict(self):
+        # test the new-in-2.5 httpresponses dictionary
+        self.assertEquals(urllib2.httpresponses[404], "Not Found")
 
 
 class MockOpener:



More information about the Python-checkins mailing list