test for testing if 'Discussion Item' is not in BAD_TYPES added.
svn path=/plone.app.discussion/trunk/; revision=27246
This commit is contained in:
parent
ee5aa9ae4d
commit
95405ee48f
@ -5,6 +5,8 @@ from zope.component import createObject
|
|||||||
|
|
||||||
from Acquisition import aq_base, aq_parent
|
from Acquisition import aq_base, aq_parent
|
||||||
|
|
||||||
|
from plone.app.vocabularies.types import BAD_TYPES
|
||||||
|
|
||||||
from Products.PloneTestCase.ptc import PloneTestCase
|
from Products.PloneTestCase.ptc import PloneTestCase
|
||||||
from plone.app.discussion.tests.layer import DiscussionLayer
|
from plone.app.discussion.tests.layer import DiscussionLayer
|
||||||
|
|
||||||
@ -453,6 +455,9 @@ class ConversationTest(PloneTestCase):
|
|||||||
self.assertEquals(('', 'plone', 'doc1', '++conversation++default'), conversation.getPhysicalPath())
|
self.assertEquals(('', 'plone', 'doc1', '++conversation++default'), conversation.getPhysicalPath())
|
||||||
self.assertEquals('plone/doc1/%2B%2Bconversation%2B%2Bdefault', conversation.absolute_url())
|
self.assertEquals('plone/doc1/%2B%2Bconversation%2B%2Bdefault', conversation.absolute_url())
|
||||||
|
|
||||||
|
def test_discussion_item_not_in_bad_types(self):
|
||||||
|
self.failIf('Discussion Item' in BAD_TYPES)
|
||||||
|
|
||||||
class RepliesTest(PloneTestCase):
|
class RepliesTest(PloneTestCase):
|
||||||
|
|
||||||
# test the IReplies adapter on a conversation
|
# test the IReplies adapter on a conversation
|
||||||
|
Loading…
Reference in New Issue
Block a user