Commit 470764c4 authored by Nicolas Delaby's avatar Nicolas Delaby

Specify content_type of created document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35373 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e8a7db51
# -*- 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')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment