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

Method test_static_repr

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

Source from the content-addressed store, hash-verified

339 r"<DynamicRoute 'name' \[GET\] /get/{path}")
340
341 def test_static_repr(self):
342 self.router.add_static('/get', os.path.dirname(aiohttp.__file__),
343 name='name')
344 self.assertRegex(repr(next(iter(self.router['name']))),
345 r"<StaticRoute 'name' \[GET\] /get/")
346
347 def test_static_adds_slash(self):
348 route = self.router.add_static('/prefix',

Callers

nothing calls this directly

Calls 1

add_staticMethod · 0.80

Tested by

no test coverage detected