'Cases where the explanation-id\'s don\'t match anything.'

def test_targeted_feedback_id_typos(self):

    xml_str = textwrap.dedent('\n                                                <problem>\n                                                <p>What    is    the    correct    answer?</p>\n                                                <multiplechoiceresponse    targeted-feedback="">\n                                                        <choicegroup    type="MultipleChoice">\n                                                                <choice    correct="false"    explanation-id="feedback1TYPO">wrong-1</choice>\n                                                                <choice    correct="false"    explanation-id="feedback2">wrong-2</choice>\n                                                                <choice    correct="true"    explanation-id="feedbackCTYPO">correct-1</choice>\n                                                                <choice    correct="false"    explanation-id="feedback3">wrong-3</choice>\n                                                        </choicegroup>\n                                                </multiplechoiceresponse>\n\n                                                <targetedfeedbackset>\n                                                                <targetedfeedback    explanation-id="feedback1">\n                                                                <div    class="detailed-targeted-feedback">\n                                                                                <p>Targeted    Feedback</p>\n                                                                                <p>This    is    the    1st    WRONG    solution</p>\n                                                                </div>\n                                                                </targetedfeedback>\n\n                                                                <targetedfeedback    explanation-id="feedback2">\n                                                                <div    class="detailed-targeted-feedback">\n                                                                                <p>Targeted    Feedback</p>\n                                                                                <p>This    is    the    2nd    WRONG    solution</p>\n                                                                </div>\n                                                                </targetedfeedback>\n\n                                                                <targetedfeedback    explanation-id="feedback3">\n                                                                <div    class="detailed-targeted-feedback">\n                                                                                <p>Targeted    Feedback</p>\n                                                                                <p>This    is    the    3rd    WRONG    solution</p>\n                                                                </div>\n                                                                </targetedfeedback>\n\n                                                                <targetedfeedback    explanation-id="feedbackC">\n                                                                <div    class="detailed-targeted-feedback-correct">\n                                                                                <p>Targeted    Feedback</p>\n                                                                                <p>Feedback    on    your    correct    solution...</p>\n                                                                </div>\n                                                                </targetedfeedback>\n\n                                                </targetedfeedbackset>\n\n                                                <solution    explanation-id="feedbackC">\n                                                <div    class="detailed-solution">\n                                                                <p>Explanation</p>\n                                                                <p>This    is    the    solution    explanation</p>\n                                                                <p>Not    much    to    explain    here,    sorry!</p>\n                                                </div>\n                                                </solution>\n                                </problem>\n                                ')
    problem = new_loncapa_problem(xml_str)
    problem.done = True
    problem.student_answers = {'1_2_1': 'choice_0'}
    the_html = problem.get_html()
    self.assertRegexpMatches(the_html, '<targetedfeedbackset>\\s*</targetedfeedbackset>')
    problem = new_loncapa_problem(xml_str)
    problem.done = True
    problem.student_answers = {'1_2_1': 'choice_2'}
    the_html = problem.get_html()
    self.assertRegexpMatches(the_html, '<targetedfeedbackset>\\s*</targetedfeedbackset>')
