

def test_deprecated_routes_not_copied(self):
    inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=self.bp, remapping={
        '/foo': None,
    })
    self.app.register_blueprint(inherited_bp)
    self.assert200(self.client.get('v1/foo'))
    self.assert404(self.client.get('v2/foo'))

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