diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-07-28 14:27:01 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:28 +0200 |
commit | ff739a697af362647c17a4010984439a03b673df (patch) | |
tree | 01878a43b6080a825e4dbb901fe9446be1cddd25 /service/test/integration/test_leap_mailstore.py | |
parent | 37dc1b4d597b6c6d4801cfd41037763f82233ee0 (diff) |
Added tests to get mails within a mailbox.
Diffstat (limited to 'service/test/integration/test_leap_mailstore.py')
-rw-r--r-- | service/test/integration/test_leap_mailstore.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/service/test/integration/test_leap_mailstore.py b/service/test/integration/test_leap_mailstore.py index a71df74d..1cca6903 100644 --- a/service/test/integration/test_leap_mailstore.py +++ b/service/test/integration/test_leap_mailstore.py @@ -68,6 +68,16 @@ class LeapMailStoreTest(SoledadTestBase): self.assertIsNone(deleted_msg) @defer.inlineCallbacks + def test_get_mailbox_mail_ids(self): + mail = _load_mail_from_file('mbox00000000') + yield self.store.add_mailbox('INBOX') + yield self.store.add_mail('INBOX', mail.as_string()) + + mails = yield self.store.get_mailbox_mail_ids('INBOX') + + self.assertEqual(1, len(mails)) + + @defer.inlineCallbacks def _create_mail_in_soledad(self, mail): message = self._convert_mail_to_leap_message(mail) yield self.adaptor.initialize_store(self.soledad) |