

def test_remapped_routes(self):
    inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=self.bp, remapping={
        '/foo': '/faz',
    })
    self.app.register_blueprint(inherited_bp)
    self.assert404(self.client.get('/v2/foo'))
    self.assertEqual(self.client.get('/v2/faz').data, self.client.get('/v1/foo').data)
    self.assertEqual(self.client.get('/v2/bar').data, self.client.get('/v1/bar').data)

dataset/ETHPy150Open gwongz/flask-apiblueprint/test_apiblueprint.py TestAPIBlueprintIntegration.test_remapped_routes/original