Merged revisions 81691 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81691 | senthil.kumaran | 2010-06-04 22:47:09 +0530 (Fri, 04 Jun 2010) | 3 lines test verifying the resp object is closed for HEAD response. ........
This commit is contained in:
parent
8c43610906
commit
3bde59c7b0
|
@ -222,7 +222,7 @@ class BasicTest(TestCase):
|
||||||
self.assertEquals(resp.read(), '')
|
self.assertEquals(resp.read(), '')
|
||||||
self.assertEquals(resp.status, 200)
|
self.assertEquals(resp.status, 200)
|
||||||
self.assertEquals(resp.reason, 'OK')
|
self.assertEquals(resp.reason, 'OK')
|
||||||
resp.close()
|
self.assertTrue(resp.isclosed())
|
||||||
|
|
||||||
def test_negative_content_length(self):
|
def test_negative_content_length(self):
|
||||||
sock = FakeSocket('HTTP/1.1 200 OK\r\n'
|
sock = FakeSocket('HTTP/1.1 200 OK\r\n'
|
||||||
|
|
Loading…
Reference in New Issue