(transport)
| 312 | |
| 313 | |
| 314 | def test_prepare_chunked_force(transport): |
| 315 | msg = protocol.Response(transport, 200) |
| 316 | msg.enable_chunked_encoding() |
| 317 | |
| 318 | chunked = msg._write_chunked_payload = mock.Mock() |
| 319 | chunked.return_value = iter([1, 2, 3]) |
| 320 | |
| 321 | msg.add_headers(('content-length', '42')) |
| 322 | msg.send_headers() |
| 323 | assert chunked.called |
| 324 | |
| 325 | |
| 326 | def test_prepare_chunked_no_length(transport): |
nothing calls this directly
no test coverage detected