From 3d78f4a17e125697965e68faa8a9c3b366f262a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 24 Apr 2014 10:26:22 +0200 Subject: [PATCH] [FIX] email_template: fixed a test not checking signature but using a template adding signature. bzr revid: tde@openerp.com-20140424082622-71ratcz4xrdn8d7t --- addons/email_template/tests/test_mail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/email_template/tests/test_mail.py b/addons/email_template/tests/test_mail.py index 580421fe67e..62291d78dcb 100644 --- a/addons/email_template/tests/test_mail.py +++ b/addons/email_template/tests/test_mail.py @@ -62,7 +62,7 @@ class test_message_compose(TestMail): 'name': 'Pigs Template', 'subject': '${object.name}', 'body_html': '${object.description}', - 'user_signature': True, + 'user_signature': False, 'attachment_ids': [(0, 0, _attachments[0]), (0, 0, _attachments[1])], 'email_to': 'b@b.b, c@c.c', 'email_cc': 'd@d.d' @@ -157,7 +157,7 @@ class test_message_compose(TestMail): message_pids = [partner.id for partner in compose.partner_ids] partner_ids = [p_a_id] self.assertEqual(compose.subject, '${object.name}', 'mail.compose.message subject incorrect') - self.assertEqual(compose.body, '

${object.description}

', 'mail.compose.message body incorrect') + self.assertEqual(compose.body, '

${object.description}

', 'mail.compose.message body incorrect') # todo: check signature self.assertEqual(set(message_pids), set(partner_ids), 'mail.compose.message partner_ids incorrect') # 2. Post the comment, get created message