mirror of
https://github.com/python/cpython
synced 2024-10-14 08:41:09 +00:00
Move test case for HTTP response dict to httplib.
This commit is contained in:
parent
6aab16e9f6
commit
4cbd1e3fc1
|
@ -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()
|
||||
|
|
|
@ -41,10 +41,6 @@ def test_trivial(self):
|
|||
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']),
|
||||
|
|
Loading…
Reference in a new issue