diff options
-rw-r--r-- | service/test/integration/soledad_querier_test.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/test/integration/soledad_querier_test.py b/service/test/integration/soledad_querier_test.py index 3d6dc61d..5d9bcccd 100644 --- a/service/test/integration/soledad_querier_test.py +++ b/service/test/integration/soledad_querier_test.py @@ -75,3 +75,11 @@ class SoledadQuerierTest(unittest.TestCase, SoledadTestBase, WithMsgFields): mails = self.soledad_querier.all_mails() self.assertEqual(1, len(mails)) + + def test_get_mails_by_chash(self): + mails = self.add_multiple_to_mailbox(3, 'INBOX') + chashes = [mail.ident for mail in mails] + + fetched_mails = self.soledad_querier.mails(chashes) + + self.assertEquals([m.as_dict() for m in fetched_mails], [m.as_dict() for m in mails]) |