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)
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)
def test_p(self): p = convert.p("p: paragraph test one two three") self.assertEqual("<p>paragraph test one two three</p>", p)