Beispiel #1
0
 def test_clean_string(self):
     s = u"qwertyuiop[];'\/.,"
     self.assertEqual(remove_control_chars(s), s)
Beispiel #2
0
 def test_clean_string(self):
     s = u"qwertyuiop[];'\/.,"
     self.assertEqual(remove_control_chars(s), s)
Beispiel #3
0
 def test_bad_string(self):
     bad = '\xef\xbb\xbfDate'.decode("utf-8")
     good = u'Date'
     self.assertEqual(remove_control_chars(bad), good)
Beispiel #4
0
 def test_bad_string(self):
     bad = '\xef\xbb\xbfDate'.decode("utf-8")
     good = u'Date'
     self.assertEqual(remove_control_chars(bad), good)