summaryrefslogtreecommitdiff
path: root/service/test/unit/controllers/mails_controller_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/unit/controllers/mails_controller_test.py')
-rw-r--r--service/test/unit/controllers/mails_controller_test.py7
1 files changed, 7 insertions, 0 deletions
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'