188
188
address = u'Pepe P\xe9rez <pperez@ejemplo.com>' # unicode ok
189
189
encoded = EmailMessage.address_to_encoded_header(address)
191
191
self.assertEquals(address, decode(encoded))
193
193
address = 'Pepe P\xc3\xa9red <pperez@ejemplo.com>' # UTF-8 ok
194
194
encoded = EmailMessage.address_to_encoded_header(address)
196
196
self.assertEquals(address, decode(encoded).encode('utf-8'))
198
198
address = 'Pepe P\xe9rez <pperez@ejemplo.com>' # ISO-8859-1 not ok