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

Method test_plain_route_url

tests/test_urldispatch.py:755–758  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

753 self.assertEqual({}, route.resource._match('/path'))
754
755 def test_plain_route_url(self):
756 route = PlainRoute('GET', lambda req: None, None, '/path')
757 self.router.register_route(route)
758 self.assertEqual('/path?arg=1', route.url(query={'arg': 1}))
759
760 def test_dynamic_route_url(self):
761 route = DynamicRoute('GET', lambda req: None, None,

Callers

nothing calls this directly

Calls 3

urlMethod · 0.95
PlainRouteClass · 0.90
register_routeMethod · 0.45

Tested by

no test coverage detected