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

Method test_route_dynamic_with_regex

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

Source from the content-addressed store, hash-verified

427 self.assertEqual('/get/123/', url)
428
429 def test_route_dynamic_with_regex(self):
430 handler = self.make_handler()
431 route = self.router.add_route('GET', r'/{one}/{two:.+}', handler)
432
433 url = route.url(parts={'one': 1, 'two': 2})
434 self.assertEqual('/1/2', url)
435
436 def test_regular_match_info(self):
437

Callers

nothing calls this directly

Calls 3

make_handlerMethod · 0.95
add_routeMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected