summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 22:01:08 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 22:01:08 (GMT)
commit4cbd1e3fc12341bc7806a0608d2f4e704b117cd9 (patch)
tree358f7bf595fafb4d77b55b93d18d44e8bc8ec6d6 /Lib
parent6aab16e9f6df06ab68f24422dcc50579f500c0b7 (diff)
downloadcpython-4cbd1e3fc12341bc7806a0608d2f4e704b117cd9.zip
cpython-4cbd1e3fc12341bc7806a0608d2f4e704b117cd9.tar.gz
cpython-4cbd1e3fc12341bc7806a0608d2f4e704b117cd9.tar.bz2
Move test case for HTTP response dict to httplib.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_httplib.py6
-rw-r--r--Lib/test/test_urllib2.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index ede0f4b..90bae88 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -161,8 +161,12 @@ def _test():
resp.close()
+class OfflineTest(TestCase):
+ def test_responses(self):
+ self.assertEquals(httplib.responses[httplib.NOT_FOUND], "Not Found")
+
def test_main(verbose=None):
- tests = [HeaderTests,]
+ tests = [HeaderTests,OfflineTest]
test_support.run_unittest(*tests)
test()
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 8248967..0b2a650 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -41,10 +41,6 @@ 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")
-
def test_parse_http_list(self):
tests = [('a,b,c', ['a', 'b', 'c']),
('path"o,l"og"i"cal, example', ['path"o,l"og"i"cal', 'example']),