test verifying the resp object is closed for HEAD response.
This commit is contained in:
parent
dfaced5d3d
commit
fb6950140a
|
@ -227,7 +227,7 @@ class BasicTest(TestCase):
|
|||
self.assertEquals(resp.read(), '')
|
||||
self.assertEquals(resp.status, 200)
|
||||
self.assertEquals(resp.reason, 'OK')
|
||||
resp.close()
|
||||
self.assertTrue(resp.isclosed())
|
||||
|
||||
def test_negative_content_length(self):
|
||||
sock = FakeSocket('HTTP/1.1 200 OK\r\n'
|
||||
|
|
Loading…
Reference in New Issue