

@patch.object(APIBlueprint, 'record')
def test_record_not_inherited_route(self, record):
    '\n        Verify that record is called with right arguments when a route is added.\n        '
    bp = APIBlueprint('bp_v1', __name__, url_prefix='/v1')

    @bp.route('/foo')
    def foo():
        return 'Foo'
    self.assertEqual(record.call_count, 1)
    expected_call = call_args.call_args_list[0]
    (call_args, call_kwargs) = (expected_call[0], expected_call[1])
    self.assertEqual(call_kwargs, dict(rule='/foo'))

dataset/ETHPy150Open gwongz/flask-apiblueprint/test_apiblueprint.py TestAPIBlueprint.test_record_not_inherited_route/VarMisuse@70/130 `record`->`call_args`