From 03f7ece809492f8b3c295065a14833b78cbd58d8 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Thu, 11 Sep 2014 15:34:14 -0300 Subject: fixing tests --- service/test/adapter/pixelated_mail_sender_test.py | 2 +- service/test/adapter/pixelated_mailbox_test.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'service') diff --git a/service/test/adapter/pixelated_mail_sender_test.py b/service/test/adapter/pixelated_mail_sender_test.py index aadeaeab..4bac327c 100644 --- a/service/test/adapter/pixelated_mail_sender_test.py +++ b/service/test/adapter/pixelated_mail_sender_test.py @@ -33,7 +33,7 @@ class PixelatedMailSenderTest(unittest.TestCase): mail_dict['header']['bcc'] = ['bcc@pixelated.org', 'anotherbcc@pixelated.org'] mail = PixelatedMail.from_dict(mail_dict) - mail.to_smtp_format = lambda _from: "mail as smtp string" + mail.to_smtp_format = lambda : "mail as smtp string" self.mail_sender.sendmail(mail) diff --git a/service/test/adapter/pixelated_mailbox_test.py b/service/test/adapter/pixelated_mailbox_test.py index 0bba6220..bff6d6de 100644 --- a/service/test/adapter/pixelated_mailbox_test.py +++ b/service/test/adapter/pixelated_mailbox_test.py @@ -41,11 +41,9 @@ class TestPixelatedMailbox(unittest.TestCase): mail.to_smtp_format = lambda: 'the mail in smtp format' leap_mailbox_messages = mock() - leap_mailbox = test_helper.leap_mailbox(messages=[]) - mailbox = PixelatedMailbox(leap_mailbox, self.db_file_path) - mailbox.leap_mailbox.messages = leap_mailbox_messages + self.mailbox.leap_mailbox.messages = leap_mailbox_messages - mailbox.add(mail) + self.mailbox.add(mail) verify(leap_mailbox_messages).add_msg('the mail in smtp format') -- cgit v1.2.3