def test_render_markdown_with_xss(self): t = ' <script>' r = render_markdown(t).strip() assert r == '<pre><code><script></code></pre>'
def test_render_markdown_with_chinese(self): t = u' 牛B' r = render_markdown(t).strip() assert r == u'<pre><code>\u725bB</code></pre>'
def test_render_markdown_simple(self): t = 'aa' r = render_markdown(t).strip() assert r == '<p>aa</p>'