diff options
author | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-12-11 17:57:14 -0200 |
---|---|---|
committer | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-12-11 17:57:48 -0200 |
commit | 833952f71a6e9e757848dc4b2c6acd4321c1dd8d (patch) | |
tree | addd6e8f089c52a0127994197ecbba3e1878b5d9 | |
parent | 391bceaad87c7ec3766bf79d55060673d0819765 (diff) |
created new tests to cover delete mail from mail list
-rw-r--r-- | service/test/integration/delete_mail_test.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/service/test/integration/delete_mail_test.py b/service/test/integration/delete_mail_test.py index 15232b0d..28f55840 100644 --- a/service/test/integration/delete_mail_test.py +++ b/service/test/integration/delete_mail_test.py @@ -46,3 +46,20 @@ class DeleteMailTest(SoledadTestBase): trash_mails = self.get_mails_by_tag('trash') self.assertEqual(0, len(trash_mails)) + + def test_move_mail_to_trash_when_delete_multiple(self): + mails = self.client.add_multiple_to_mailbox(5, 'inbox') + mail_idents = [m.ident for m in mails] + + self.delete_mails(mail_idents) + + inbox = self.get_mails_by_tag('inbox') + self.assertEquals(0, len(inbox)) + + def test_delete_permanently_when_mails_are_in_trash(self): + mails = self.client.add_multiple_to_mailbox(5, 'trash') + self.delete_mails([m.ident for m in mails]) + + trash = self.get_mails_by_tag('trash') + + self.assertEquals(0, len(trash)) |