[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testZopeSecurityPolicy.py:1.5.6.2

Tres Seaver tseaver at zope.com
Tue Jan 27 11:15:37 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv21421/lib/python/AccessControl/tests

Modified Files:
      Tag: Zope-2_6-branch
	testZopeSecurityPolicy.py 
Log Message:


  - Very strange;  all tests were passing without implementing
    'getWrappedOwner' in the test jig, until Brian checked in his changes
    to cAccessControl.  Nevertheless, this change looks sane (in fact, I
    started to add it yesterday, but held off when the tests passed
    without it!).


=== Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py 1.5.6.1 => 1.5.6.2 ===
--- Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py:1.5.6.1	Fri Jan  9 14:07:17 2004
+++ Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py	Tue Jan 27 11:15:36 2004
@@ -44,6 +44,9 @@
     def getOwner(self):
         return None
 
+    def getWrappedOwner(self):
+        return None
+
     __roles__ = None
 
 
@@ -56,6 +59,11 @@
 
     def getOwner(self):
         return self.aq_parent.aq_parent.acl_users.getUserById('theowner')
+
+    def getWrappedOwner(self):
+        acl_users = self.aq_parent.aq_parent.acl_users
+        user = acl_users.getUserById('theowner')
+        return user.__of__(acl_users)
 
 
 class setuidMethod (PublicMethod):




More information about the Zope-Checkins mailing list