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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user