Пример #1
0
 def test3(self):
   result = text2html("a\n\nb")
   self.assertEquals(str(result), "<p>a</p>\n<p>b</p>")
Пример #2
0
 def test4(self):
   result = text2html("a\n<a>toto</a>")
   self.assertEquals(str(result), "<p>a</p>\n<p>&lt;a&gt;toto&lt;/a&gt;</p>")
Пример #3
0
 def test1(self):
   result = text2html("a")
   self.assertEquals(result, "a")