def test_remove_escape_squences_raw(self):
     teststring = r"\r\n\a\tasdf"
     resstring = xml_util.remove_escape_sequences(teststring)
     self.assertTrue(resstring == teststring, \
         "{0}\nshould be\n{1}".format(resstring,teststring))
Example #2
0
 def test_remove_escape_squences_space(self):
     teststring = "\r \n\a\tas \ndf\f"
     resstring = xml_util.remove_escape_sequences(teststring)
     self.assertTrue(resstring == " as df ", "{0}\nshould be\n{1}".format(resstring, " as df "))
 def test_remove_escape_squences_space(self):
     teststring = "\r \n\a\tas \ndf\f"
     resstring = xml_util.remove_escape_sequences(teststring)
     self.assertTrue(resstring == " as df ", \
         "{0}\nshould be\n{1}".format(resstring," as df "))
Example #4
0
 def test_remove_escape_squences_raw(self):
     teststring = r"\r\n\a\tasdf"
     resstring = xml_util.remove_escape_sequences(teststring)
     self.assertTrue(resstring == teststring, "{0}\nshould be\n{1}".format(resstring, teststring))