()
| 93 | with test_utils.run_server(self.loop, router=Functional) as httpd: |
| 94 | @asyncio.coroutine |
| 95 | def go(): |
| 96 | r = yield from client.request('get', |
| 97 | httpd.url('redirect', 2), |
| 98 | loop=self.loop) |
| 99 | |
| 100 | self.assertEqual(r.status, 200) |
| 101 | self.assertEqual(2, httpd['redirects']) |
| 102 | r.close() |
| 103 | self.loop.run_until_complete(go()) |
| 104 | |
| 105 | def test_HTTP_302_REDIRECT_NON_HTTP(self): |
nothing calls this directly
no test coverage detected