summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-09-11 15:34:14 -0300
committerPatrick Maia <pmaia@thoughtworks.com>2014-09-15 11:50:47 -0300
commit03f7ece809492f8b3c295065a14833b78cbd58d8 (patch)
treeff4bf064af9a75bff56b4cc1643c969074452720 /service
parent44511d0b64c3e63d4c8a1788f7f7684e722afe85 (diff)
fixing tests
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')