See that trailers are read and ignored
(self)
| 1348 | resp.close() |
| 1349 | |
| 1350 | def test_chunked_trailers(self): |
| 1351 | """See that trailers are read and ignored""" |
| 1352 | expected = chunked_expected |
| 1353 | sock = FakeSocket(chunked_start + last_chunk + trailers + chunked_end) |
| 1354 | resp = client.HTTPResponse(sock, method="GET") |
| 1355 | resp.begin() |
| 1356 | self.assertEqual(resp.read(), expected) |
| 1357 | # we should have reached the end of the file |
| 1358 | self.assertEqual(sock.file.read(), b"") #we read to the end |
| 1359 | resp.close() |
| 1360 | |
| 1361 | def test_chunked_sync(self): |
| 1362 | """Check that we don't read past the end of the chunked-encoding stream""" |
nothing calls this directly
no test coverage detected