(self)
| 999 | self.assertEqual(cookies, hdr) |
| 1000 | |
| 1001 | def test_read_head(self): |
| 1002 | # Test that the library doesn't attempt to read any data |
| 1003 | # from a HEAD request. (Tickles SF bug #622042.) |
| 1004 | sock = FakeSocket( |
| 1005 | 'HTTP/1.1 200 OK\r\n' |
| 1006 | 'Content-Length: 14432\r\n' |
| 1007 | '\r\n', |
| 1008 | NoEOFBytesIO) |
| 1009 | resp = client.HTTPResponse(sock, method="HEAD") |
| 1010 | resp.begin() |
| 1011 | if resp.read(): |
| 1012 | self.fail("Did not expect response from HEAD request") |
| 1013 | |
| 1014 | def test_readinto_head(self): |
| 1015 | # Test that the library doesn't attempt to read any data |
nothing calls this directly
no test coverage detected