mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
RFE [ 1216944 ] Add Error Code Dictionary to urllib2
This commit is contained in:
parent
c1f5fff2b7
commit
5c5fe2f445
4 changed files with 65 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue