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

Method test_static_adds_slash

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

Source from the content-addressed store, hash-verified

345 r"<StaticRoute 'name' \[GET\] /get/")
346
347 def test_static_adds_slash(self):
348 route = self.router.add_static('/prefix',
349 os.path.dirname(aiohttp.__file__))
350 self.assertEqual('/prefix/', route._prefix)
351
352 def test_static_dont_add_trailing_slash(self):
353 route = self.router.add_static('/prefix/',

Callers

nothing calls this directly

Calls 1

add_staticMethod · 0.80

Tested by

no test coverage detected