RFE [ 1216944 ] Add Error Code Dictionary to urllib2

This commit is contained in:
Georg Brandl 2005-07-14 06:40:47 +00:00
parent c1f5fff2b7
commit 5c5fe2f445
4 changed files with 65 additions and 0 deletions

View file

@ -40,6 +40,10 @@ class TrivialTests(unittest.TestCase):
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: