Plain text and intelligent text options for comment text added to preserve basic text structure and to make links clickable.

svn path=/plone.app.discussion/trunk/; revision=38931
This commit is contained in:
Timo Stollenwerk
2010-08-25 14:03:29 +00:00
parent 35d7743b7a
commit a2c89ed5e8
6 changed files with 56 additions and 12 deletions
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import unittest
from zope.component import getMultiAdapter
@@ -36,8 +37,16 @@ class RegistryTest(PloneTestCase):
def test_globally_enabled(self):
# Check globally_enabled record
self.failUnless('globally_enabled' in IDiscussionSettings)
self.assertEquals(self.registry['plone.app.discussion.interfaces.IDiscussionSettings.globally_enabled'], True)
self.assertEquals(
self.registry['plone.app.discussion.interfaces.IDiscussionSettings.globally_enabled'],
True)
def test_text_transform(self):
self.failUnless('text_transform' in IDiscussionSettings)
self.assertEquals(
self.registry['plone.app.discussion.interfaces.IDiscussionSettings.text_transform'],
'text/plain')
def test_captcha(self):
# Check globally_enabled record
self.failUnless('captcha' in IDiscussionSettings)