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

Method test_route_with_qs

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

Source from the content-addressed store, hash-verified

267 self.assertIs(route, route2)
268
269 def test_route_with_qs(self):
270 handler = self.make_handler()
271 self.router.add_route('GET', '/get', handler, name='name')
272
273 url = self.router['name'].url(query=[('a', 'b'), ('c', 1)])
274 self.assertEqual('/get?a=b&c=1', url)
275
276 def test_add_static(self):
277 route = self.router.add_static('/st',

Callers

nothing calls this directly

Calls 3

make_handlerMethod · 0.95
add_routeMethod · 0.45
urlMethod · 0.45

Tested by

no test coverage detected