From 95405ee48f4875e8144439d6c2f6e63b4f33096d Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 31 May 2009 17:54:14 +0000 Subject: [PATCH] test for testing if 'Discussion Item' is not in BAD_TYPES added. svn path=/plone.app.discussion/trunk/; revision=27246 --- plone/app/discussion/tests/test_conversation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index c96da46..9d4e2d6 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -5,6 +5,8 @@ from zope.component import createObject from Acquisition import aq_base, aq_parent +from plone.app.vocabularies.types import BAD_TYPES + from Products.PloneTestCase.ptc import PloneTestCase 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/%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): # test the IReplies adapter on a conversation