Esempio n. 1
0
 def test_fix_xml_ampersands(self):
     self.assertEqual(fix_xml_ampersands('"&x=y&z=a'), '"&x=y&z=a')
     self.assertEqual(fix_xml_ampersands('"&x=y&wrong;&z=a'),
                      '"&x=y&wrong;&z=a')
     self.assertEqual(fix_xml_ampersands('&'><"'),
                      '&'><"')
     self.assertEqual(fix_xml_ampersands('Ӓ᪼'),
                      'Ӓ᪼')
     self.assertEqual(fix_xml_ampersands('&#&#'), '&#&#')
Esempio n. 2
0
 def test_fix_xml_ampersands(self):
     self.assertEqual(
         fix_xml_ampersands('"&x=y&z=a'), '"&x=y&z=a')
     self.assertEqual(
         fix_xml_ampersands('"&x=y&wrong;&z=a'),
         '"&x=y&wrong;&z=a')
     self.assertEqual(
         fix_xml_ampersands('&'><"'),
         '&'><"')
     self.assertEqual(
         fix_xml_ampersands('Ӓ᪼'), 'Ӓ᪼')
     self.assertEqual(fix_xml_ampersands('&#&#'), '&#&#')