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>'