[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/tests - test_rolecontents.py:1.3.14.1
Steve Alexander
steve@cat-box.net
Thu, 15 May 2003 11:04:51 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/services/tests
In directory cvs.zope.org:/tmp/cvs-serv15334/src/zope/app/browser/services/tests
Modified Files:
Tag: stevea-decorators-branch
test_rolecontents.py
Log Message:
fixed some more tests.
=== Zope3/src/zope/app/browser/services/tests/test_rolecontents.py 1.3 => 1.3.14.1 ===
--- Zope3/src/zope/app/browser/services/tests/test_rolecontents.py:1.3 Thu Mar 13 13:49:03 2003
+++ Zope3/src/zope/app/browser/services/tests/test_rolecontents.py Thu May 15 11:04:21 2003
@@ -23,6 +23,8 @@
from zope.app.services.role import RoleService
from zope.app.browser.container.tests.test_contents \
import BaseTestContentsBrowserView
+from zope.proxy.context import ContextWrapper
+from zope.app.component.decoratorservice import registerDecoratorForClass
class IDummy(Interface):
pass
@@ -32,8 +34,14 @@
class Test(BaseTestContentsBrowserView, unittest.TestCase):
+ def setUp(self):
+ BaseTestContentsBrowserView.setUp(self)
+ registerDecoratorForClass(RoleService,
+ 'zope.app.container.contextdecorator',
+ 'context')
+
def _TestView__newContext(self):
- return RoleService()
+ return ContextWrapper(RoleService(), None)
def _TestView__newView(self, container):
from zope.publisher.browser import TestRequest