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

Method test_add_url_invalid2

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

Source from the content-addressed store, hash-verified

152 self.router.add_route('post', '/post/{id', handler)
153
154 def test_add_url_invalid2(self):
155 handler = self.make_handler()
156 with self.assertRaises(ValueError):
157 self.router.add_route('post', '/post/{id{}}', handler)
158
159 def test_add_url_invalid3(self):
160 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