()
| 178 | |
| 179 | @pytest.mark.run_loop |
| 180 | def test_chunked_encoding(): |
| 181 | req = make_request('GET', '/') |
| 182 | resp = StreamResponse() |
| 183 | assert not resp.chunked |
| 184 | |
| 185 | resp.enable_chunked_encoding() |
| 186 | assert resp.chunked |
| 187 | |
| 188 | with mock.patch('aiohttp.web_reqrep.ResponseImpl'): |
| 189 | msg = yield from resp.prepare(req) |
| 190 | assert msg.chunked |
| 191 | |
| 192 | |
| 193 | @pytest.mark.run_loop |
nothing calls this directly
no test coverage detected