def mock_method(name, data):
    '\n    Returns a function that mocks an original function.\n    '

    def mockf(*args, **kwargs):
        return mock_res(name, data, args, kwargs)
    return mockf
Returns a function that mocks an original function.
def mock_method(name, data):
    '\n    \n    '

    def mockf(*args, **kwargs):
        return mock_res(name, data, args, kwargs)
    return mockf