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

Method test_not_found_repr

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

Source from the content-addressed store, hash-verified

450 self.loop.run_until_complete(go())
451
452 def test_not_found_repr(self):
453
454 @asyncio.coroutine
455 def go():
456 req = self.make_request('POST', '/path/to')
457 match_info = yield from self.router.resolve(req)
458 self.assertEqual("<MatchInfoError 404: Not Found>",
459 repr(match_info))
460
461 self.loop.run_until_complete(go())
462
463 def test_not_allowed_repr(self):
464

Callers

nothing calls this directly

Calls 1

goFunction · 0.70

Tested by

no test coverage detected