[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI/tests - testZMIViewUtility.py:1.1.2.14
Steve Alexander
steve@cat-box.net
Mon, 10 Jun 2002 17:31:03 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZMI/tests
In directory cvs.zope.org:/tmp/cvs-serv5189/lib/python/Zope/App/ZMI/tests
Modified Files:
Tag: Zope-3x-branch
testZMIViewUtility.py
Log Message:
made ZMI tabs appear appropriate to the permissions of the principal
making the request.
=== Zope3/lib/python/Zope/App/ZMI/tests/testZMIViewUtility.py 1.1.2.13 => 1.1.2.14 ===
__implements__ = I
+ def __call__(self):
+ pass
+
ob = C()
ob.a1 = C()
ob.a2 = C()
@@ -59,6 +62,9 @@
def __init__(self, context, request):
self.context = context
self.request = request
+
+ def __call__(self):
+ pass
class Test(PlacefulSetup, unittest.TestCase):
@@ -73,7 +79,8 @@
I, 'a3', IBrowserPresentation, [V])
getService(None, "Views").provideView(None, '_traverse',
IBrowserPresentation, [TestTraverser])
- defineChecker(C, NamesChecker(['a1', 'a2', 'a3'], CheckerPublic,
+ defineChecker(C, NamesChecker(['a1', 'a2', 'a3', '__call__'],
+ CheckerPublic,
abad='waaa'))
def test(self):
@@ -84,6 +91,7 @@
{'label':'l2', 'action':'a2/a3'},
{'label':'l3', 'action':'@@a3'}
])
+
class Request:
def getPresentationType(self):