summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index c68d244a6c..1c0b7dafd3 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -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: