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

Method test_deprecate_register_route

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

Source from the content-addressed store, hash-verified

777 self.assertEqual({'to': 'to'}, route.match('/path/to'))
778
779 def test_deprecate_register_route(self):
780 route = PlainRoute('GET', lambda req: None, None, '/path')
781 with self.assertWarns(DeprecationWarning):
782 self.router.register_route(route)
783
784 def test_error_on_double_route_adding(self):
785 resource = self.router.add_resource('/path')

Callers

nothing calls this directly

Calls 2

PlainRouteClass · 0.90
register_routeMethod · 0.45

Tested by

no test coverage detected