diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-23 15:08:05 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-23 15:08:05 +0200 |
commit | e5ee6d5128858d2d94016ec8a86dee95f3c522e0 (patch) | |
tree | 6ea59cd4141318ca857219b3741f4b79d1ae58ff | |
parent | 216c6ee972d732d2d51866f4bbbf7136d30a95c1 (diff) |
Adding test for get mails by ident on soledad_querier
-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]) |