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

Function test_repr

tests/test_web_request_handler.py:7–17  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

5
6
7def test_repr(loop):
8 app = web.Application(loop=loop)
9 manager = app.make_handler()
10 handler = manager()
11
12 assert '<RequestHandler none:none disconnected>' == repr(handler)
13
14 handler.transport = object()
15 handler._meth = 'GET'
16 handler._path = '/index.html'
17 assert '<RequestHandler GET:/index.html connected>' == repr(handler)
18
19
20def test_connections(loop):

Callers

nothing calls this directly

Calls 1

make_handlerMethod · 0.95

Tested by

no test coverage detected