'returns the task_id and the result returned by instructor_task_status().'

def _get_output_for_task_success(self, attempted, succeeded, total, student=None):

    instructor_task = self._create_progress_entry(student)
    task_id = instructor_task.task_id
    mock_result = Mock()
    mock_result.task_id = task_id
    mock_result.state = SUCCESS
    mock_result.result = {'attempted': attempted, 'succeeded': succeeded, 'total': total, 'action_name': 'rescored'}
    output = self._test_get_status_from_result(task_id, mock_result)
    return output
