示例#1
0
 def test_markdown_filter_none(self):
     self.assertEqual(markdown_filter({}, None), None)
     self.assertEqual(markdown_filter({}, ''), '')
示例#2
0
 def test_markdown_filter_none(self):
     self.assertEqual(markdown_filter({}, None), None)
     self.assertEqual(markdown_filter({}, ''), '')
示例#3
0
 def test_markdown_filter(self):
     result = markdown_filter({}, '*foo*')
     self.assertIsInstance(result, Markup)
     self.assertEqual(
         result,
         '<p><em>foo</em></p>')
示例#4
0
 def test_markdown_filter(self):
     result = markdown_filter({}, '*foo*')
     self.assertIsInstance(result, Markup)
     self.assertEqual(result, '<p><em>foo</em></p>')