summaryrefslogtreecommitdiff
path: root/service/test/unit/controllers
diff options
context:
space:
mode:
authorLisa Junger <ljunger@thoughtworks.com>2014-11-19 10:44:08 +0100
committerAlexandre Pretto Nunes <anunes@thoughtworks.com>2014-12-03 15:48:49 -0200
commitf273d2abeefa0d77d306bcfab3135195afbc31c3 (patch)
treedb0864f7e413f3c51756ecf9f32cdf235c1f4a90 /service/test/unit/controllers
parent6c5e6a65ed543193f676f601741fb597dc48e5dd (diff)
added functionality for reply all to service.
Diffstat (limited to 'service/test/unit/controllers')
-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'