def test_unescape(self):
     j='this string &quot; has &&amp; entities &gt; &lt; and some characters xml won\'t like<'
     expected='this string " has && entities > < and some characters xml won\'t like<'
     self.assertEqual(domhelpers.unescape(j), expected)
Example #2
0
 def test_unescape(self):
     j = 'this string &quot; has &&amp; entities &gt; &lt; and some characters xml won\'t like<'
     expected = 'this string " has && entities > < and some characters xml won\'t like<'
     self.assertEqual(domhelpers.unescape(j), expected)