Example #1
0
 def test_with_str(self):
     d = u('\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111')
     r = b"\xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91"
     self.assertEqual(
         extract._encode_to_utf8(d),
         r
     )
Example #2
0
 def test_with_str(self):
     d = u('\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111')
     r = b"\xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91"
     self.assertEqual(
         extract._encode_to_utf8(d),
         r
     )
Example #3
0
 def test_with_other(self):
     d = 2
     self.assertEqual(
         extract._encode_to_utf8(d),
         d
     )
Example #4
0
 def test_with_other(self):
     d = 2
     self.assertEqual(
         extract._encode_to_utf8(d),
         d
     )