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