(transport)
| 129 | |
| 130 | |
| 131 | def test_add_headers_length(transport): |
| 132 | msg = protocol.Response(transport, 200) |
| 133 | assert msg.length is None |
| 134 | |
| 135 | msg.add_headers(('content-length', '42')) |
| 136 | assert 42 == msg.length |
| 137 | |
| 138 | |
| 139 | def test_add_headers_upgrade(transport): |
nothing calls this directly
no test coverage detected