'Test the case of targeted feedback for a correct answer.'

def test_targeted_feedback_correct_answer(self):

    problem = new_loncapa_problem(load_fixture('targeted_feedback.xml'))
    problem.done = True
    problem.student_answers = {'1_2_1': 'choice_2'}
    the_html = problem.get_html()
    without_new_lines = the_html.replace('\n', '')
    self.assertRegexpMatches(without_new_lines, '<targetedfeedback    explanation-id=\\"feedbackC\\"    role=\\"group\\"    aria-describedby=\\"1_2_1-legend\\">\\s*<span    class=\\"sr\\">Correct</span>.*Feedback    on    your    correct    solution...')
    self.assertNotRegexpMatches(without_new_lines, 'feedback1|feedback2|feedback3')
