'Returns status corresponding to task_id via api method.'

def _get_instructor_task_status(self, task_id):

    request = Mock()
    request.GET = request.POST = {'task_id': task_id}
    return instructor_task_status(request)
