[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests -
From:       Casey Duncan <casey () zope ! com>
Date:       2004-04-29 21:17:39
Message-ID: 200404292117.i3TLHdpC023967 () cvs ! zope ! org
[Download RAW message or body]

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'])


_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic