Пример #1
0
 def test_clean_tuples(self):
     self.assertEqual(
         detect.clean_tuples([(b'\x8f' * 4, b'\x8f' * 4,
                               b'h\xc3\xa9llo', 1)]),
         [(u'\ufffd' * 4, u'\ufffd' * 4, u'h\xe9llo', 1)])
Пример #2
0
 def test_clean_tuples(self):
     self.assertEqual(
         detect.clean_tuples([
             (b'\x8f' * 4, b'\x8f' * 4, b'h\xc3\xa9llo', 1)
         ]), [(u'\ufffd' * 4, u'\ufffd' * 4, u'h\xe9llo', 1)])