remove __of__ calls on views
This commit is contained in:
parent
0a2ef0c2d3
commit
bc2a9ac5d9
@ -31,7 +31,6 @@ class RegistryTest(unittest.TestCase):
|
||||
(self.portal, self.portal.REQUEST),
|
||||
name='discussion-controlpanel'
|
||||
)
|
||||
view = view.__of__(self.portal)
|
||||
self.assertTrue(view())
|
||||
|
||||
def test_discussion_in_controlpanel(self):
|
||||
|
@ -34,7 +34,6 @@ class ModerationViewTest(unittest.TestCase):
|
||||
request = self.app.REQUEST
|
||||
context = getattr(self.portal, 'doc1')
|
||||
self.view = View(context, request)
|
||||
self.view.__of__(context)
|
||||
self.portal.portal_workflow.setChainForPortalTypes(
|
||||
('Discussion Item',), 'comment_review_workflow')
|
||||
self.wf_tool = self.portal.portal_workflow
|
||||
|
Loading…
Reference in New Issue
Block a user