test verifying the resp object is closed for HEAD response.

This commit is contained in:
Senthil Kumaran 2010-06-04 17:17:09 +00:00
parent dfaced5d3d
commit fb6950140a
1 changed files with 1 additions and 1 deletions

View File

@ -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'