'Tests rescores a problem in a course, for all students fails if user has answered a
problem to which user does not have access to.'

def test_rescoring_unaccessable(self):

    input_state = json.dumps({'done': True})
    num_students = 1
    self._create_students_with_state(num_students, input_state)
    task_entry = self._create_input_entry()
    with patch('lms.djangoapps.instructor_task.tasks_helper.module_state.get_module_for_descriptor_internal', return_value=None):
        self._run_task_with_mock_celery(rescore_problem, 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=0, skipped=0, failed=num_students, action_name='rescored')
