'Regression for #11144 - When a to/from/cc header contains unicode,
make sure the email addresses are parsed correctly (especially with
regards to commas)'

def test_unicode_address_header(self):

    email = EmailMessage(u'Subject', u'Content', u'from@example.com', [u'"Firstname    S\xfcrname"    <to@example.com>', u'other@example.com'])
    self.assertEqual(email.message()[u'To'], u'=?utf-8?q?Firstname_S=C3=BCrname?=    <to@example.com>,    other@example.com')
    email = EmailMessage(u'Subject', u'Content', u'from@example.com', [u'"S\xfcrname,    Firstname"    <to@example.com>', u'other@example.com'])
    self.assertEqual(email.message()[u'To'], u'=?utf-8?q?S=C3=BCrname=2C_Firstname?=    <to@example.com>,    other@example.com')
