def test_markdown_filter_none(self):
     self.assertEqual(markdown_filter({}, None), None)
     self.assertEqual(markdown_filter({}, ''), '')
Exemple #2
0
 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>')
Exemple #4
0
 def test_markdown_filter(self):
     result = markdown_filter({}, '*foo*')
     self.assertIsInstance(result, Markup)
     self.assertEqual(result, '<p><em>foo</em></p>')