[Zope-Checkins] CVS: Zope/lib/python/OFS/tests - testTraverse.py:1.6
Shane Hathaway
shane@zope.com
Tue, 10 Jun 2003 11:40:40 -0400
Update of /cvs-repository/Zope/lib/python/OFS/tests
In directory cvs.zope.org:/tmp/cvs-serv32527/tests
Modified Files:
testTraverse.py
Log Message:
Fixed a unit test that relied on Unauthorized errors appearing out of thin air :-)
=== Zope/lib/python/OFS/tests/testTraverse.py 1.5 => 1.6 ===
--- Zope/lib/python/OFS/tests/testTraverse.py:1.5 Tue Jan 14 10:03:08 2003
+++ Zope/lib/python/OFS/tests/testTraverse.py Tue Jun 10 11:40:39 2003
@@ -59,9 +59,7 @@
# Standard SecurityPolicy interface
#
def validate(self, accessed, container, name, value, *args):
- if aq_base(accessed) is aq_base(container):
- raise Unauthorized, name
- return 0
+ raise Unauthorized, name
def checkPermission( self, permission, object, context) :
return 0