Exemplo n.º 1
0
    def test_input_string_write_html_content(self):
        o = tempfile.TemporaryFile('r+w')
        md = Markdown('`test`')
        md.write_html_content(o)

        o.seek(0)
        html = o.read()
        o.close()

        self.assertEqual(html, '<p><code>test</code></p>\n')