Esempio n. 1
0
 def test_b_with_p(self):
     p = convert.bold("p: nope *blah* and *quiver*")
     p = convert.p(p)
     self.assertEqual("<p>nope <b>blah</b> and <b>quiver</b></p>", p)
Esempio n. 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)
Esempio n. 3
0
 def test_p(self):
     p = convert.p("p: paragraph test one two three")
     self.assertEqual("<p>paragraph test one two three</p>", p)