[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests -
testUserFolder.py:1.7.14.3
Casey Duncan
casey at zope.com
Thu Apr 29 17:13:36 EDT 2004
Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv22691/AccessControl/tests
Modified Files:
Tag: Zope-2_7-branch
testUserFolder.py
Log Message:
Fix test so that is creates a new user folder, rather than borrowing the one *actually in the root*. This could cause the tests to fail if you had a user folder with any users in it.
=== Zope/lib/python/AccessControl/tests/testUserFolder.py 1.7.14.2 => 1.7.14.3 ===
--- Zope/lib/python/AccessControl/tests/testUserFolder.py:1.7.14.2 Fri Jan 30 11:58:53 2004
+++ Zope/lib/python/AccessControl/tests/testUserFolder.py Thu Apr 29 17:13:36 2004
@@ -26,7 +26,7 @@
from AccessControl import Unauthorized
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager
-from AccessControl.User import BasicUserFolder
+from AccessControl.User import BasicUserFolder, UserFolder
from AccessControl.User import User
# XXX: Uncomment to enforce C implementation
@@ -42,7 +42,7 @@
self.app = makerequest(Zope.app())
try:
# Set up a user and role
- self.uf = self.app.acl_users
+ self.uf = UserFolder().__of__(self.app)
self.uf._doAddUser('user1', 'secret', ['role1'], [])
self.app._addRole('role1')
self.app.manage_role('role1', ['View'])
More information about the Zope-Checkins
mailing list