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

Method test_dynamic_match_non_ascii

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

Source from the content-addressed store, hash-verified

513 'GET', '/', self.make_handler(), expect_handler=handler)
514
515 def test_dynamic_match_non_ascii(self):
516
517 @asyncio.coroutine
518 def go():
519 handler = self.make_handler()
520 self.router.add_route('GET', '/{var}', handler)
521 req = self.make_request(
522 'GET',
523 '/%D1%80%D1%83%D1%81%20%D1%82%D0%B5%D0%BA%D1%81%D1%82')
524 match_info = yield from self.router.resolve(req)
525 self.assertEqual({'var': 'рус текст'}, match_info)
526
527 self.loop.run_until_complete(go())
528
529 def test_dynamic_match_with_static_part(self):
530

Callers

nothing calls this directly

Calls 1

goFunction · 0.70

Tested by

no test coverage detected