def METHOD_NAME(self, view_func, data, headers, method='POST', **kwargs):
    request = FakeRequest(headers)
    if 'user' in kwargs:
        request.user = kwargs.get('user')
    if callable(view_func):
        setattr(request, method, data)
        request.body = json.dumps(data)
        return view_func(request)
    return request