diff --git a/tests/regressiontests/mail/tests.py b/tests/regressiontests/mail/tests.py
index ffb86db..d68855e 100644
a
|
b
|
class MailTests(TestCase):
|
93 | 93 | self.assertEqual(message['Cc'], 'cc@example.com, cc.other@example.com') |
94 | 94 | self.assertEqual(email.recipients(), ['to@example.com', 'other@example.com', 'cc@example.com', 'cc.other@example.com', 'bcc@example.com']) |
95 | 95 | |
| 96 | def test_recipients_as_tuple(self): |
| 97 | email = EmailMessage('Subject', 'Content', 'from@example.com', ('to@example.com', 'other@example.com'), cc=('cc@example.com', 'cc.other@example.com'), bcc=('bcc@example.com',)) |
| 98 | message = email.message() |
| 99 | self.assertEqual(message['Cc'], 'cc@example.com, cc.other@example.com') |
| 100 | self.assertEqual(email.recipients(), ['to@example.com', 'other@example.com', 'cc@example.com', 'cc.other@example.com', 'bcc@example.com']) |
| 101 | |
96 | 102 | def test_header_injection(self): |
97 | 103 | email = EmailMessage('Subject\nInjection Test', 'Content', 'from@example.com', ['to@example.com']) |
98 | 104 | self.assertRaises(BadHeaderError, email.message) |