(self)
| 459 | expected_body = b"It's just a flesh wound" |
| 460 | |
| 461 | def test_endheaders_chunked(self): |
| 462 | conn = client.HTTPConnection('example.com') |
| 463 | conn.sock = FakeSocket(b'') |
| 464 | conn.putrequest('POST', '/') |
| 465 | conn.endheaders(self._make_body(), encode_chunked=True) |
| 466 | |
| 467 | _, _, body = self._parse_request(conn.sock.data) |
| 468 | body = self._parse_chunked(body) |
| 469 | self.assertEqual(body, self.expected_body) |
| 470 | |
| 471 | def test_explicit_headers(self): |
| 472 | # explicit chunked |
nothing calls this directly
no test coverage detected