(transport)
| 443 | |
| 444 | |
| 445 | def test_write_payload_chunked_large_chunk(transport): |
| 446 | write = transport.write = mock.Mock() |
| 447 | msg = protocol.Response(transport, 200) |
| 448 | msg.send_headers() |
| 449 | |
| 450 | msg.add_chunking_filter(1024) |
| 451 | msg.write(b'data') |
| 452 | msg.write_eof() |
| 453 | content = b''.join([c[1][0] for c in list(write.mock_calls)]) |
| 454 | assert content.endswith(b'4\r\ndata\r\n0\r\n\r\n') |
| 455 | |
| 456 | |
| 457 | def test_write_payload_deflate_filter(transport): |
nothing calls this directly
no test coverage detected