def test_escape(self):
     j='this string " contains many & characters> xml< won\'t like'
     expected='this string &quot; contains many &amp; characters&gt; xml&lt; won\'t like'
     self.assertEqual(domhelpers.escape(j), expected)
Example #2
0
 def test_escape(self):
     j = 'this string " contains many & characters> xml< won\'t like'
     expected = 'this string &quot; contains many &amp; characters&gt; xml&lt; won\'t like'
     self.assertEqual(domhelpers.escape(j), expected)