

def test_inherited_routes(self):
    inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=self.bp)
    self.app.register_blueprint(inherited_bp)
    self.assertEqual(inherited_bp.client.get('/v2/foo').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_inherited_routes/VarMisuse@42/67 `self`->`inherited_bp`