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'ééé'
def test_to_unicode(self): for msg in self.all_strings: result = strings.to_unicode(msg) assert isinstance(result, self.unicode_type)