From bc2a9ac5d954a1285753a38713d475c45e6155b2 Mon Sep 17 00:00:00 2001 From: MrTango Date: Tue, 31 Jan 2017 17:57:41 +0100 Subject: [PATCH] remove __of__ calls on views --- plone/app/discussion/tests/test_controlpanel.py | 3 +-- plone/app/discussion/tests/test_moderation_view.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/plone/app/discussion/tests/test_controlpanel.py b/plone/app/discussion/tests/test_controlpanel.py index c3f1ac5..6c68f7c 100644 --- a/plone/app/discussion/tests/test_controlpanel.py +++ b/plone/app/discussion/tests/test_controlpanel.py @@ -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',), diff --git a/plone/app/discussion/tests/test_moderation_view.py b/plone/app/discussion/tests/test_moderation_view.py index 4f44d57..c84b3e9 100644 --- a/plone/app/discussion/tests/test_moderation_view.py +++ b/plone/app/discussion/tests/test_moderation_view.py @@ -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