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

Method test_add_url_invalid4

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

Source from the content-addressed store, hash-verified

162 self.router.add_route('post', '/post/{id{}', handler)
163
164 def test_add_url_invalid4(self):
165 handler = self.make_handler()
166 with self.assertRaises(ValueError):
167 self.router.add_route('post', '/post/{id"}', handler)
168
169 def test_add_url_escaping(self):
170 handler = self.make_handler()

Callers

nothing calls this directly

Calls 2

make_handlerMethod · 0.95
add_routeMethod · 0.45

Tested by

no test coverage detected