def test3(self): result = text2html("a\n\nb") self.assertEquals(str(result), "<p>a</p>\n<p>b</p>")
def test4(self): result = text2html("a\n<a>toto</a>") self.assertEquals(str(result), "<p>a</p>\n<p><a>toto</a></p>")
def test1(self): result = text2html("a") self.assertEquals(result, "a")