コード例 #1
0
 def test_remove_markup(self):
     """
     Test for markup removal with bleach.
     """
     self.assertEqual(
         remove_markup(
             "The <mark>Truth</mark> is <em>Out There</em> & you need to <strong>find</strong> it"
         ), "The Truth is Out There &amp; you need to find it")
コード例 #2
0
ファイル: test_util.py プロジェクト: AlexxNica/edx-platform
 def test_remove_markup(self):
     """
     Test for markup removal with bleach.
     """
     self.assertEqual(
         remove_markup("The <mark>Truth</mark> is <em>Out There</em> & you need to <strong>find</strong> it"),
         "The Truth is Out There &amp; you need to find it"
     )
コード例 #3
0
ファイル: test_util.py プロジェクト: yrchen/edx-platform
 def test_remove_markup(self):
     """
     Test for markup removal with bleach.
     """
     assert remove_markup('The <mark>Truth</mark> is <em>Out There</em> & you need to <strong>find</strong> it') ==\
            'The Truth is Out There &amp; you need to find it'