[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests - testUserFolder.py:1.10

Casey Duncan casey at zope.com
Thu Apr 29 17:17:39 EDT 2004


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

Modified Files:
	testUserFolder.py 
Log Message:
Fix test so that is creates a new user folder, rather than borrowing the one *ac
tually 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.9 => 1.10 ===
--- Zope/lib/python/AccessControl/tests/testUserFolder.py:1.9	Fri Jan 30 11:58:45 2004
+++ Zope/lib/python/AccessControl/tests/testUserFolder.py	Thu Apr 29 17:17:06 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
 
 
@@ -37,7 +37,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