(transport)
| 145 | |
| 146 | |
| 147 | def test_add_headers_upgrade_websocket(transport): |
| 148 | msg = protocol.Response(transport, 200) |
| 149 | |
| 150 | msg.add_headers(('upgrade', 'test')) |
| 151 | assert [] == list(msg.headers) |
| 152 | |
| 153 | msg.add_headers(('upgrade', 'websocket')) |
| 154 | assert [('UPGRADE', 'websocket')] == list(msg.headers.items()) |
| 155 | |
| 156 | |
| 157 | def test_add_headers_connection_keepalive(transport): |
nothing calls this directly
no test coverage detected