def test_previous_revision(self): revb = self.ctrl.revise("b") wanted = u"<p>prev<a class='wikilink' href='%s'><<</a>rev</p>" % self.ctrl.plmobject_url html = markdown_filter(u"prev << rev", revb) self.assertHTMLEqual(html, wanted)
def markdown(self, text, wanted): html = markdown_filter(text, self.ctrl) self.assertTrue(isinstance(html, SafeData)) self.assertHTMLEqual(html, wanted) return html