Пример #1
0
 def test_i_multiple_in_a_line(self):
     p = convert.italic("_blah_ space nothing _quiver_ strange")
     self.assertEqual("<i>blah</i> space nothing <i>quiver</i> strange", p)
Пример #2
0
 def test_i_with_p(self):
     p = convert.italic("p: nope _blah_ and _quiver_")
     p = convert.p(p)
     self.assertEqual("<p>nope <i>blah</i> and <i>quiver</i></p>", p)
Пример #3
0
 def test_i(self):
     p = convert.italic("_ blah quiver _")
     self.assertEqual("<i> blah quiver </i>", p)