Test to ensure changing the version of a LocalRoute on the fly works
(self)
| 166 | assert "skip_directives" in route.route |
| 167 | |
| 168 | def test_version(self): |
| 169 | """Test to ensure changing the version of a LocalRoute on the fly works""" |
| 170 | assert "version" not in self.route.route |
| 171 | |
| 172 | route = self.route.version(2) |
| 173 | assert "version" in route.route |
| 174 | assert route.route["version"] == 2 |
| 175 | |
| 176 | |
| 177 | class TestHTTPRouter(TestInternalValidation): |