diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-10-13 17:01:02 -0300 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-10-13 17:01:02 -0300 |
commit | 4549490d806b98f23561db1cfc8f689332feee04 (patch) | |
tree | 8309045e8cfdaeffad740897e71be9637f2d4a4b /service/test/support | |
parent | 91e14810895cae861421fddb179b5831fa0c1f3d (diff) |
Add tests for welcome mail.
Diffstat (limited to 'service/test/support')
-rw-r--r-- | service/test/support/integration/app_test_client.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -187,6 +187,12 @@ class AppTestClient(object): 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) res = yield deferred_result |