diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-26 13:11:00 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-26 13:11:00 -0300 |
commit | 1082f233962953c0927b73e7acac2665d420857b (patch) | |
tree | e6bd8fef98930e5f1bb18041643da261a606fdc4 /service/test/adapter/pixelated_mail_sender_test.py | |
parent | b4333d2d0955b3f5774bbd1ea97cfdabd5578fd1 (diff) |
Fixing tests
Diffstat (limited to 'service/test/adapter/pixelated_mail_sender_test.py')
-rw-r--r-- | service/test/adapter/pixelated_mail_sender_test.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/service/test/adapter/pixelated_mail_sender_test.py b/service/test/adapter/pixelated_mail_sender_test.py index b41f1d0c..d75aa57c 100644 --- a/service/test/adapter/pixelated_mail_sender_test.py +++ b/service/test/adapter/pixelated_mail_sender_test.py @@ -27,12 +27,13 @@ class PixelatedMailSenderTest(unittest.TestCase): self.mail_sender = PixelatedMailSender(self.mail_address, self.smtp_client) def test_send_mail_sends_to_To_Cc_and_Bcc(self): - mail_dict = test_helper.mail_dict() - mail_dict['header']['to'] = ['to@pixelated.org', 'anotherto@pixelated.org'] - mail_dict['header']['cc'] = ['cc@pixelated.org', 'anothercc@pixelated.org'] - mail_dict['header']['bcc'] = ['bcc@pixelated.org', 'anotherbcc@pixelated.org'] + headers = { + 'To': ['to@pixelated.org', 'anotherto@pixelated.org'], + 'Cc': ['cc@pixelated.org', 'anothercc@pixelated.org'], + 'Bcc': ['bcc@pixelated.org', 'anotherbcc@pixelated.org'] + } - mail = PixelatedMail.from_dict(mail_dict) + mail = PixelatedMail.from_soledad(*test_helper.leap_mail(extra_headers=headers)) mail.to_smtp_format = lambda: "mail as smtp string" self.mail_sender.sendmail(mail) |