

@patch.object(APIBlueprint, 'copy_routes')
def test_setup_with_inheritance(self, copy_routes):
    '\n        Verify that copy routes is called when a blueprint is initialized\n        with an `inherit_from` argument.\n        '
    bp = APIBlueprint('bp', __name__)
    inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=bp)
    copy_routes.assert_called_once_with(remapping=None)

dataset/ETHPy150Open gwongz/flask-apiblueprint/test_apiblueprint.py TestAPIBlueprint.test_setup_with_inheritance/original