summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/test/adapter/pixelated_mail_sender_test.py2
-rw-r--r--service/test/adapter/pixelated_mailbox_test.py6
2 files changed, 3 insertions, 5 deletions
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')