コード例 #1
0
ファイル: test.py プロジェクト: jubic/RP-Misc
 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)
コード例 #2
0
ファイル: test.py プロジェクト: jubic/RP-Misc
 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
ファイル: test.py プロジェクト: jubic/RP-Misc
 def test_p(self):
     p = convert.p("p: paragraph test one two three")
     self.assertEqual("<p>paragraph test one two three</p>", p)