From f45373b311d4a56b130d436a760286be3d029013 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 15 Jun 2012 21:15:02 +0200 Subject: [PATCH] Test for mime type transformation from html to html added. --- plone/app/discussion/tests/test_comment.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plone/app/discussion/tests/test_comment.py b/plone/app/discussion/tests/test_comment.py index d83d3cb..307c646 100644 --- a/plone/app/discussion/tests/test_comment.py +++ b/plone/app/discussion/tests/test_comment.py @@ -161,6 +161,13 @@ class CommentTest(unittest.TestCase): 'Go to http://www.plone.org') + def test_getText_uses_comment_mime_type_html(self): + comment1 = createObject('plone.Comment') + comment1.text = 'Go to plone.org' + comment1.mime_type = 'text/html' + self.assertEqual(comment1.getText(), + 'Go to plone.org') + def test_getText_w_custom_targetMimetype(self): comment1 = createObject('plone.Comment') comment1.text = 'para'