MCPcopy
hub / github.com/aio-libs/aiohttp / go

Method go

tests/test_client_functional_oldstyle.py:95–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 7

decodeMethod · 0.80
wait_closedMethod · 0.80
requestMethod · 0.45
urlMethod · 0.45
closeMethod · 0.45
readMethod · 0.45
create_serverMethod · 0.45

Tested by

no test coverage detected