Pep8
This commit is contained in:
parent
2d4f7fd665
commit
2dc5393ff2
@ -11,6 +11,7 @@ from zope.publisher.interfaces.browser import IBrowserRequest
|
||||
|
||||
from plone.app.discussion.interfaces import IConversation
|
||||
|
||||
|
||||
class ConversationNamespace(object):
|
||||
"""Allow traversal into a conversation via a ++conversation++name
|
||||
namespace. The name is the name of an adapter from context to
|
||||
@ -33,6 +34,6 @@ class ConversationNamespace(object):
|
||||
|
||||
conversation = queryAdapter(self.context, IConversation, name=name)
|
||||
if conversation is None:
|
||||
raise TraversalError(name) # pragma: no cover
|
||||
raise TraversalError(name) # pragma: no cover
|
||||
|
||||
return conversation
|
||||
|
@ -64,6 +64,7 @@ class WorkflowSetupTest(unittest.TestCase):
|
||||
def test_reply_to_item_permission(self):
|
||||
pass
|
||||
|
||||
|
||||
class PermissionsSetupTest(unittest.TestCase):
|
||||
"""Make sure the permissions are set up properly.
|
||||
"""
|
||||
@ -124,7 +125,8 @@ class CommentOneStateWorkflowTest(unittest.TestCase):
|
||||
'++conversation++default/%s' % cid)
|
||||
|
||||
self.portal.acl_users._doAddUser('member', 'secret', ['Member'], [])
|
||||
self.portal.acl_users._doAddUser('reviewer', 'secret', ['Reviewer'], [])
|
||||
self.portal.acl_users._doAddUser(
|
||||
'reviewer', 'secret', ['Reviewer'], [])
|
||||
self.portal.acl_users._doAddUser('manager', 'secret', ['Manager'], [])
|
||||
self.portal.acl_users._doAddUser('editor', ' secret', ['Editor'], [])
|
||||
self.portal.acl_users._doAddUser('reader', 'secret', ['Reader'], [])
|
||||
@ -246,5 +248,6 @@ class CommentReviewWorkflowTest(unittest.TestCase):
|
||||
self.assertEqual('pending', self.portal.portal_workflow.\
|
||||
getInfoFor(self.comment, 'review_state'))
|
||||
|
||||
|
||||
def test_suite():
|
||||
return unittest.defaultTestLoader.loadTestsFromName(__name__)
|
||||
|
Loading…
Reference in New Issue
Block a user