From c431f219f52f004aebf316283260cfffbddf17c8 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 30 Sep 2014 10:33:13 -0300 Subject: Fixing move to trash --- service/test/adapter/mail_service_test.py | 5 +---- service/test/adapter/pixelated_mailbox_test.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'service/test') diff --git a/service/test/adapter/mail_service_test.py b/service/test/adapter/mail_service_test.py index 7912241d..549ab05c 100644 --- a/service/test/adapter/mail_service_test.py +++ b/service/test/adapter/mail_service_test.py @@ -55,9 +55,6 @@ class TestMailService(unittest.TestCase): verify(self.mailboxes).add_draft(mail) def test_delete_mail(self): - mail = mock() - when(self.mailboxes).mail(any()).thenReturn(mail) - self.mail_service.delete_mail(1) - verify(self.mailboxes).move_to_trash(mail) + verify(self.mailboxes).move_to_trash(1) diff --git a/service/test/adapter/pixelated_mailbox_test.py b/service/test/adapter/pixelated_mailbox_test.py index 87f7b4f3..5b1cfae5 100644 --- a/service/test/adapter/pixelated_mailbox_test.py +++ b/service/test/adapter/pixelated_mailbox_test.py @@ -40,7 +40,7 @@ class PixelatedMailboxTest(unittest.TestCase): self.assertNotIn('spam', self.mailbox.mails()[0].tags) def test_remove_message_from_mailbox(self): - mail = PixelatedMail() + mail = PixelatedMail.from_soledad(*test_helper.leap_mail(), soledad_querier=self.querier) when(self.querier).mail(1).thenReturn(mail) self.mailbox.remove(1) -- cgit v1.2.3