From 4549490d806b98f23561db1cfc8f689332feee04 Mon Sep 17 00:00:00 2001 From: Giovane Date: Tue, 13 Oct 2015 17:01:02 -0300 Subject: Add tests for welcome mail. --- service/test/support/integration/app_test_client.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'service/test/support/integration') diff --git a/service/test/support/integration/app_test_client.py b/service/test/support/integration/app_test_client.py index ff5af0a7..369a393d 100644 --- a/service/test/support/integration/app_test_client.py +++ b/service/test/support/integration/app_test_client.py @@ -186,6 +186,12 @@ class AppTestClient(object): res = yield res defer.returnValue([ResponseMail(m) for m in res['mails']]) + @defer.inlineCallbacks + def get_mails_by_mailbox_name(self, mbox_name): + mail_ids = yield self.mail_store.get_mailbox_mail_ids(mbox_name) + mails = yield self.mail_store.get_mails(mail_ids) + defer.returnValue(mails) + @defer.inlineCallbacks def get_attachment(self, ident, encoding): deferred_result, req = self.get("/attachment/%s" % ident, {'encoding': [encoding]}, as_json=False) -- cgit v1.2.3