'Generate a real failure in rescoring a problem, with an answer including unicode'

def test_rescoring_bad_unicode_input(self):

    problem_url_name = 'H1P1'
    self.define_option_problem(problem_url_name)
    self.submit_student_answer('u1', problem_url_name, [OPTION_1, OPTION_1])
    expected_message = u"Could    not    interpret    '2/3\u03a9'    as    a    number"
    with patch('capa.capa_problem.LoncapaProblem.get_grade_from_current_answers') as mock_rescore:
        mock_rescore.side_effect = StudentInputError(expected_message)
        instructor_task = self.submit_rescore_all_student_answers('instructor', problem_url_name)
    instructor_task = InstructorTask.objects.get(id=instructor_task.id)
    self.assertEqual(instructor_task.task_state, 'SUCCESS')
    self.assertEqual(instructor_task.requester.username, 'instructor')
    self.assertEqual(instructor_task.task_type, 'rescore_problem')
    task_input = json.loads(instructor_task.task_input)
    self.assertNotIn('student', task_input)
    self.assertEqual(task_input['problem_url'], InstructorTaskModuleTestCase.problem_location(problem_url_name).to_deprecated_string())
    status = json.loads(instructor_task.task_output)
    self.assertEqual(status['attempted'], 1)
    self.assertEqual(status['succeeded'], 0)
    self.assertEqual(status['total'], 1)
