diff options
Diffstat (limited to 'service/test/unit/controllers/mails_controller_test.py')
-rw-r--r-- | service/test/unit/controllers/mails_controller_test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/service/test/unit/controllers/mails_controller_test.py b/service/test/unit/controllers/mails_controller_test.py index 6d566c83..3e28e6b0 100644 --- a/service/test/unit/controllers/mails_controller_test.py +++ b/service/test/unit/controllers/mails_controller_test.py @@ -113,9 +113,15 @@ 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' sent_mail.as_dict = lambda: self.input_mail.json return sent_mail |