(create_app_and_client)
| 83 | |
| 84 | @pytest.mark.run_loop |
| 85 | def test_HTTP_304(create_app_and_client): |
| 86 | @asyncio.coroutine |
| 87 | def handler(request): |
| 88 | body = yield from request.read() |
| 89 | assert b'' == body |
| 90 | return web.Response(status=304) |
| 91 | |
| 92 | app, client = yield from create_app_and_client() |
| 93 | app.router.add_route('GET', '/', handler) |
| 94 | |
| 95 | resp = yield from client.get('/') |
| 96 | assert resp.status == 304 |
| 97 | content = yield from resp.read() |
| 98 | assert content == b'' |
| 99 | |
| 100 | |
| 101 | @pytest.mark.run_loop |
nothing calls this directly
no test coverage detected