def test_version(self):
        new_route = self.route.version(2)
        assert new_route != self.route
        assert new_route.route['version'] == 2
        assert new_route.route['transform'] == 'transform'
        assert new_route.route['output'] == 'output'
Test to ensure the version can be replaced on the fly
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestCLIRouter.test_version