[Erp5-report] r35373 nicolas - /erp5/trunk/products/ERP5/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 17 11:06:04 CEST 2010


Author: nicolas
Date: Mon May 17 11:05:56 2010
New Revision: 35373

URL: http://svn.erp5.org?rev=35373&view=rev
Log:
Specify content_type of created document

Modified:
    erp5/trunk/products/ERP5/tests/testNotificationMessageModule.py

Modified: erp5/trunk/products/ERP5/tests/testNotificationMessageModule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testNotificationMessageModule.py?rev=35373&r1=35372&r2=35373&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testNotificationMessageModule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testNotificationMessageModule.py [utf8] Mon May 17 11:05:56 2010
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 ##############################################################################
 #
 # Copyright (c) 2008 Nexedi SA and Contributors. All Rights Reserved.
@@ -120,6 +121,7 @@
                            '''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 @@
     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 @@
                            '**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 @@
                            '''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')




More information about the Erp5-report mailing list