예제 #1
0
 def test_to_unicode_with_specific_input_encoding(self):
     encoded_bytes_msg = u'ééé'.encode('utf-16')
     result = strings.to_unicode(encoded_bytes_msg, in_enc='utf-16')
     assert result == u'ééé'
예제 #2
0
 def test_to_unicode(self):
     for msg in self.all_strings:
         result = strings.to_unicode(msg)
         assert isinstance(result, self.unicode_type)