From f273d2abeefa0d77d306bcfab3135195afbc31c3 Mon Sep 17 00:00:00 2001 From: Lisa Junger Date: Wed, 19 Nov 2014 10:44:08 +0100 Subject: added functionality for reply all to service. --- service/test/unit/controllers/mails_controller_test.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'service/test/unit/controllers') diff --git a/service/test/unit/controllers/mails_controller_test.py b/service/test/unit/controllers/mails_controller_test.py index 6d566c83..c5234039 100644 --- a/service/test/unit/controllers/mails_controller_test.py +++ b/service/test/unit/controllers/mails_controller_test.py @@ -113,6 +113,13 @@ class TestMailsController(unittest.TestCase): verify(self.mail_service).delete_permanent(1) + def test_reply_all_returns_template(self): + when(self.mail_service).reply_all_template(1).thenReturn(self.input_mail.json) + + self.mails_controller.reply_all_template(self.dummy_request, 1) + + verify(self.mail_service).reply_all_template(1) + def _successfuly_send_mail(self, ident, mail): sent_mail = mock() sent_mail.mailbox_name = 'TRASH' -- cgit v1.2.3