diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-01 12:21:59 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-10-01 16:43:43 -0300 |
commit | 97a5e93f5b569556a6eb8b257647a0a757b328b8 (patch) | |
tree | fd7be049a3868a0db36de7705aba355a2aa708be /service/test/adapter | |
parent | 6244ef377aace0659c088f6c95878ec8aeb0cd02 (diff) |
#53 - does not automatically add mailbox tag
Diffstat (limited to 'service/test/adapter')
-rw-r--r-- | service/test/adapter/pixelated_mailbox_test.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/service/test/adapter/pixelated_mailbox_test.py b/service/test/adapter/pixelated_mailbox_test.py index 5b1cfae5..a6e4a1ab 100644 --- a/service/test/adapter/pixelated_mailbox_test.py +++ b/service/test/adapter/pixelated_mailbox_test.py @@ -27,18 +27,6 @@ class PixelatedMailboxTest(unittest.TestCase): self.querier = mock() self.mailbox = PixelatedMailbox('INBOX', self.querier, tag_service=self.tag_service) - def test_mailbox_tag_is_added_when_recent_mail_arrives(self): - recent_leap_mail = test_helper.leap_mail(uid=0, mbox='INBOX', flags=['\\Recent']) - when(self.querier).all_mails_by_mailbox('INBOX').thenReturn([PixelatedMail.from_soledad(*recent_leap_mail, soledad_querier=self.querier)]) - - self.assertIn('inbox', self.mailbox.mails()[0].tags) - - def test_mailbox_tag_is_ignored_for_non_recent_mail(self): - recent_leap_mail = test_helper.leap_mail(uid=0, mbox='INBOX', flags=[]) - when(self.querier).all_mails_by_mailbox('INBOX').thenReturn([PixelatedMail.from_soledad(*recent_leap_mail, soledad_querier=self.querier)]) - - self.assertNotIn('spam', self.mailbox.mails()[0].tags) - def test_remove_message_from_mailbox(self): mail = PixelatedMail.from_soledad(*test_helper.leap_mail(), soledad_querier=self.querier) when(self.querier).mail(1).thenReturn(mail) |