'Use api method to fetch task status, using mock request.'

@staticmethod
def get_task_status(task_id):

    mock_request = Mock()
    mock_request.GET = mock_request.POST = {'task_id': task_id}
    response = instructor_task_status(mock_request)
    status = json.loads(response.content)
    return status
