summaryrefslogtreecommitdiff
path: root/service/test/integration
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2015-07-28 14:27:01 +0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-08-11 17:00:28 +0200
commitff739a697af362647c17a4010984439a03b673df (patch)
tree01878a43b6080a825e4dbb901fe9446be1cddd25 /service/test/integration
parent37dc1b4d597b6c6d4801cfd41037763f82233ee0 (diff)
Added tests to get mails within a mailbox.
Diffstat (limited to 'service/test/integration')
-rw-r--r--service/test/integration/test_leap_mailstore.py10
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)