(transport)
| 289 | |
| 290 | |
| 291 | def test_send_headers_nomore_add(transport): |
| 292 | msg = protocol.Response(transport, 200) |
| 293 | msg.add_headers(('content-type', 'plain/html')) |
| 294 | msg.send_headers() |
| 295 | |
| 296 | with pytest.raises(AssertionError): |
| 297 | msg.add_header('content-type', 'plain/html') |
| 298 | # cleanup |
| 299 | msg.writer.close() |
| 300 | |
| 301 | |
| 302 | def test_prepare_length(transport): |
nothing calls this directly
no test coverage detected