From 470764c441b3b71897fa806e109d6b4ef918b217 Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Mon, 17 May 2010 09:05:56 +0000
Subject: [PATCH] Specify content_type of created document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35373 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testNotificationMessageModule.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/tests/testNotificationMessageModule.py b/product/ERP5/tests/testNotificationMessageModule.py
index a8e1ec2044..ab457ce001 100644
--- a/product/ERP5/tests/testNotificationMessageModule.py
+++ b/product/ERP5/tests/testNotificationMessageModule.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 ##############################################################################
 #
 # Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
@@ -120,6 +121,7 @@ class TestNotificationMessageModule(ERP5TypeTestCase):
                            '''return dict(a="b")''')
     doc = module.newContent(portal_type='Notification Message',
                             title='Test ${a}',
+                            content_type='text/plain',
                             text_content='substitution text: ${a}',
                             text_content_substitution_mapping_method_id=
                             'NotificationMessage_getDummySubstitionMapping')
@@ -142,6 +144,7 @@ class TestNotificationMessageModule(ERP5TypeTestCase):
     doc = module.newContent(portal_type='Notification Message',
                             title='Test ${a}',
                             text_content='substitution text: ${a}',
+                            content_type='text/plain',
                             text_content_substitution_mapping_method_id=
                             'NotificationMessage_getDummySubstitionMapping')
 
@@ -159,7 +162,7 @@ class TestNotificationMessageModule(ERP5TypeTestCase):
                            '**kw',
                            '''return dict(a="b")''')
     doc = module.newContent(portal_type='Notification Message',
-                            text_format='text/html',
+                            content_type='text/html',
                             text_content='substitution text: <em>${a}</em>',
                             text_content_substitution_mapping_method_id=
                             'NotificationMessage_getDummySubstitionMapping')
@@ -178,6 +181,7 @@ class TestNotificationMessageModule(ERP5TypeTestCase):
                            '''return dict(a="b")''')
     doc = module.newContent(portal_type='Notification Message',
                             title='${b}',
+                            content_type='text/plain',
                             text_content='substitution text: ${b}',
                             text_content_substitution_mapping_method_id=
                             'NotificationMessage_getDummySubstitionMapping')
-- 
2.30.9