(self)
| 758 | self.assertEqual('/path?arg=1', route.url(query={'arg': 1})) |
| 759 | |
| 760 | def test_dynamic_route_url(self): |
| 761 | route = DynamicRoute('GET', lambda req: None, None, |
| 762 | '<pattern>', '/{path}') |
| 763 | self.router.register_route(route) |
| 764 | self.assertEqual('/path?arg=1', route.url(parts={'path': 'path'}, |
| 765 | query={'arg': 1})) |
| 766 | |
| 767 | def test_dynamic_route_match_not_found(self): |
| 768 | route = DynamicRoute('GET', lambda req: None, None, |
nothing calls this directly
no test coverage detected