コード例 #1
0
ファイル: test_utils.py プロジェクト: ccc7574/mikoto
 def test_render_markdown_with_xss(self):
     t = '    <script>'
     r = render_markdown(t).strip()
     assert r == '<pre><code>&lt;script&gt;</code></pre>'
コード例 #2
0
ファイル: test_utils.py プロジェクト: ccc7574/mikoto
 def test_render_markdown_with_chinese(self):
     t = u'     牛B'
     r = render_markdown(t).strip()
     assert r == u'<pre><code>\u725bB</code></pre>'
コード例 #3
0
ファイル: test_utils.py プロジェクト: ccc7574/mikoto
 def test_render_markdown_simple(self):
     t = 'aa'
     r = render_markdown(t).strip()
     assert r == '<p>aa</p>'