From 9b66f62b66750a3f76a02ad86f709c732fc0f088 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 10 Jun 2009 20:17:36 +0000 Subject: [PATCH] remove unnecessary code from workflow test. svn path=/plone.app.discussion/trunk/; revision=27370 --- plone/app/discussion/tests/test_workflow.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plone/app/discussion/tests/test_workflow.py b/plone/app/discussion/tests/test_workflow.py index c3de350..682b721 100644 --- a/plone/app/discussion/tests/test_workflow.py +++ b/plone/app/discussion/tests/test_workflow.py @@ -1,12 +1,24 @@ import unittest +from zope.interface import alsoProvides + from Products.PloneTestCase.ptc import PloneTestCase + from plone.app.discussion.tests.layer import DiscussionLayer class WorkflowTest(PloneTestCase): layer = DiscussionLayer + def afterSetUp(self): + self.portal.portal_types['Document'].allow_discussion = True + self.portal_discussion = self.portal.portal_discussion + + self.folder.invokeFactory('Document', 'doc1') + + self.setRoles(('Reviewer',)) + #alsoProvides(self.portal.REQUEST, DiscussionLayer) + def test_permission(self): self.setRoles(('Reviewer',)) self.failUnless(self.portal.portal_membership.checkPermission('Review comments', self.folder), self.folder)