def test_api(self):
        new_route = self.route.api('new')
        assert new_route != self.route
        assert new_route.route['api'] == 'new'
Test to ensure changing the API associated with the route works as expected
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestRouter.test_api