Make 'text/plain' the default mime type for comments and make sure the default type is set properly when creating a new comment.

This commit is contained in:
Timo Stollenwerk
2012-06-17 12:09:25 +02:00
parent f45373b311
commit 702f7e1f1d
3 changed files with 13 additions and 1 deletions
@@ -127,6 +127,10 @@ class CommentTest(unittest.TestCase):
comment1 = createObject('plone.Comment')
self.assertEqual(comment1.Type(), 'Comment')
def test_mime_type(self):
comment1 = createObject('plone.Comment')
self.assertEqual(comment1.mime_type, 'text/plain')
def test_getText(self):
comment1 = createObject('plone.Comment')
comment1.text = """First paragraph