

@patch.object(APIBlueprint, 'route')
def test_route(self, route):
    '\n        Verify that route is called with right arguments when a blueprint is\n        inherited and then overloaded.\n        '
    (bp, foo, bar) = self._setup_parent_blueprint()
    inherited_bp = APIBlueprint('bp_v2', __name__, url_prefix='/v2', inherit_from=bp)

    @inherited_bp.route('/bar')
    def overloaded_bar():
        return 'Overloaded bar'
    expected_calls = [call('/foo'), call('/bar'), call('/bar')]
    self.assertEqual(expected_calls.call_args_list, expected_calls)

dataset/ETHPy150Open gwongz/flask-apiblueprint/test_apiblueprint.py TestAPIBlueprint.test_route/VarMisuse@98/186 `route`->`expected_calls`