'Make sure replace_jump_to_id_urls() is called in get_answer.'

def test_get_answer_with_jump_to_id_urls(self):

    problem_xml = textwrap.dedent('\n                                <problem>\n                                                <p>What    is    1+4?</p>\n                                                                <numericalresponse    answer="5">\n                                                                        <formulaequationinput    />\n                                                                </numericalresponse>\n\n                                                                <solution>\n                                                                <div    class="detailed-solution">\n                                                                <p>Explanation</p>\n                                                                <a    href="/jump_to_id/c0f8d54964bc44a4a1deb8ecce561ecd">here\'s    the    same    link    to    the    hint    page.</a>\n                                                                </div>\n                                                                </solution>\n                                </problem>\n                                ')
    data = dict()
    problem = CapaFactory.create(showanswer='always', xml=problem_xml)
    problem.runtime.replace_jump_to_id_urls = Mock()
    problem.get_answer(data)
    self.assertTrue(problem.runtime.replace_jump_to_id_urls.called)
