remove __of__ calls on views

This commit is contained in:
MrTango 2017-01-31 17:57:41 +01:00
parent 0a2ef0c2d3
commit bc2a9ac5d9
2 changed files with 1 additions and 3 deletions

View File

@ -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):
@ -163,7 +162,7 @@ class ConfigurationChangedSubscriberTest(unittest.TestCase):
the 'comment_moderation' setting in the discussion control panel
changes.
"""
# By default the comment_one_state_workflow without moderation is
# By default the comment_one_state_workflow without moderation is
# enabled
self.assertEqual(
('comment_one_state_workflow',),

View File

@ -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