Ejemplo n.º 1
0
 def test_remove_html_markup_replacement(self):
     """htmlutils - remove HTML markup, some replacement"""
     test_input = 'This is <a href="test">test</a>.'
     test_expected = 'This is XtestX.'
     self.assertEqual(remove_html_markup(test_input, 'X'),
                      test_expected)
Ejemplo n.º 2
0
 def test_remove_html_markup_empty(self):
     """htmlutils - remove HTML markup, empty replacement"""
     test_input = 'This is <a href="test">test</a>.'
     test_expected = 'This is test.'
     self.assertEqual(remove_html_markup(test_input, ''),
                      test_expected)