Exemplo n.º 1
0
    class TestMarkdown(object):
        def setUp(self):
            self.md = InterpretMarkdown()

        def testMorphPath(self):
            metadata, data = self.md.process_and_return(
                {'output_path': 'test.md'},
                ''
            )

            assert metadata['output_path'] == 'test.html'

        def testConvertMarkdown(self):
            metadata, data = self.md.process_and_return(
                {'output_path': 'test.md'},
                '*Hello*'
            )

            assert data == '<p><em>Hello</em></p>'
Exemplo n.º 2
0
 def setUp(self):
     self.md = InterpretMarkdown()