()
| 220 | |
| 221 | @pytest.mark.run_loop |
| 222 | def test_compression_no_accept(): |
| 223 | req = make_request('GET', '/') |
| 224 | resp = StreamResponse() |
| 225 | assert not resp.chunked |
| 226 | |
| 227 | assert not resp.compression |
| 228 | resp.enable_compression() |
| 229 | assert resp.compression |
| 230 | |
| 231 | with mock.patch('aiohttp.web_reqrep.ResponseImpl'): |
| 232 | msg = yield from resp.prepare(req) |
| 233 | assert not msg.add_compression_filter.called |
| 234 | |
| 235 | |
| 236 | @pytest.mark.run_loop |
nothing calls this directly
no test coverage detected