'Tests rescores a problem in a course, for all students succeeds.'

def test_overriding_success(self):

    mock_instance = MagicMock()
    getattr(mock_instance, 'override_problem_score').return_value = None
    num_students = 10
    self._create_students_with_state(num_students)
    task_entry = self._create_input_entry(score=0)
    with patch('lms.djangoapps.instructor_task.tasks_helper.module_state.get_module_for_descriptor_internal') as mock_get_module:
        mock_get_module.return_value = mock_instance
        self._run_task_with_mock_celery(override_problem_score, task_entry.id, task_entry.task_id)
    self.assert_task_output(output=self.get_task_output(task_entry.id), total=num_students, attempted=num_students, succeeded=num_students, skipped=0, failed=0, action_name='overridden')
