'Regression test for #7722'

def test_cc(self):

    email = EmailMessage(u'Subject', u'Content', u'from@example.com', [u'to@example.com'], cc=[u'cc@example.com'])
    message = email.message()
    self.assertEqual(message[u'Cc'], u'cc@example.com')
    self.assertEqual(email.recipients(), [u'to@example.com', u'cc@example.com'])
    email = EmailMessage(u'Subject', u'Content', u'from@example.com', [u'to@example.com', u'other@example.com'], cc=[u'cc@example.com', u'cc.other@example.com'])
    message = email.message()
    self.assertEqual(message[u'Cc'], u'cc@example.com,    cc.other@example.com')
    self.assertEqual(email.recipients(), [u'to@example.com', u'other@example.com', u'cc@example.com', u'cc.other@example.com'])
    email = EmailMessage(u'Subject', u'Content', u'from@example.com', [u'to@example.com', u'other@example.com'], cc=[u'cc@example.com', u'cc.other@example.com'], bcc=[u'bcc@example.com'])
    message = email.message()
    self.assertEqual(message[u'Cc'], u'cc@example.com,    cc.other@example.com')
    self.assertEqual(email.recipients(), [u'to@example.com', u'other@example.com', u'cc@example.com', u'cc.other@example.com', u'bcc@example.com'])
