def test_version(self):
        assert not 'version' in self.route.route

        route = self.route.version(2)
        assert 'version' in route.route
        assert route.route['version'] == 2
Test to ensure changing the version of a LocalRoute on the fly works
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestLocalRouter.test_version