From 443da0e47134b349bb87af1e034395d0eac09bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 17 Dec 2013 11:45:37 +0100 Subject: [PATCH] make sure content-type is copied from notification message --- product/ERP5/tests/testCRM.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/tests/testCRM.py b/product/ERP5/tests/testCRM.py index b7d1b6c592..d655bf0a10 100644 --- a/product/ERP5/tests/testCRM.py +++ b/product/ERP5/tests/testCRM.py @@ -465,7 +465,6 @@ class TestCRM(BaseTestCRM): Check that configuring the Event Path on Campaign, all events are created according to the domain selected """ - skin_folder = self.portal.portal_skins.custom mapping_method_id = "NotificationMessage_getSubstitutionMappingDictFromEvent" portal = self.portal notification_message_reference = 'campaign-Event.Path' @@ -515,7 +514,8 @@ class TestCRM(BaseTestCRM): self.assertEquals(destination_list, [first_user]) mail_message = event_list[0] self.assertEquals(sender.getRelativeUrl(), mail_message.getSource()) - self.assertEquals(mail_message.getTextContent(), "Hello %s\n" % first_user.getTitle()) + self.assertEquals(mail_message.getTextFormat(), "text/html") + self.assertEquals(mail_message.getTextContent(), "Hello %s" % first_user.getTitle()) self.assertEquals(mail_message.getResourceValue(), service) campaign = portal.campaign_module.newContent(portal_type="Campaign", -- 2.30.9