def test_markdown_filter_none(self): self.assertEqual(markdown_filter({}, None), None) self.assertEqual(markdown_filter({}, ''), '')
def test_markdown_filter(self): result = markdown_filter({}, '*foo*') self.assertIsInstance(result, Markup) self.assertEqual( result, '<p><em>foo</em></p>')
def test_markdown_filter(self): result = markdown_filter({}, '*foo*') self.assertIsInstance(result, Markup) self.assertEqual(result, '<p><em>foo</em></p>')