[CMF-checkins] CVS: CMF/CMFCore/tests -
test_MembershipTool.py:1.6.6.1
Yvo Schubbe
schubbe at web.de
Tue Sep 9 09:07:54 EDT 2003
Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv5160/CMFCore/tests
Modified Files:
Tag: yuppie-deleteMembers-branch
test_MembershipTool.py
Log Message:
Prepare for deleteMembers:
- move getMembersFolder to the CMFCore interface
- rename createMemberarea to createMemberArea
- change deleteLocalRoles permissions and add 'recursive' argument
=== CMF/CMFCore/tests/test_MembershipTool.py 1.6 => 1.6.6.1 ===
--- CMF/CMFCore/tests/test_MembershipTool.py:1.6 Wed Jun 11 07:36:05 2003
+++ CMF/CMFCore/tests/test_MembershipTool.py Tue Sep 9 08:07:23 2003
@@ -13,11 +13,11 @@
from Interface import verify_class_implementation as verifyClass
from AccessControl.SecurityManagement import newSecurityManager
-from Products.CMFCore.PortalFolder import PortalFolder
-from Products.CMFCore.tests.base.dummy import DummySite
-from Products.CMFCore.tests.base.dummy import DummyTool
-from Products.CMFCore.tests.base.dummy import DummyUserFolder
-from Products.CMFCore.tests.base.testcase import SecurityTest
+from Products.CMFCore.PortalFolder import PortalFolder
+from Products.CMFCore.tests.base.dummy import DummySite
+from Products.CMFCore.tests.base.dummy import DummyTool
+from Products.CMFCore.tests.base.dummy import DummyUserFolder
+from Products.CMFCore.tests.base.testcase import SecurityTest
from Products.CMFCore.MembershipTool import MembershipTool
@@ -41,25 +41,25 @@
self.site = DummySite('site').__of__(self.root)
self.mtool = MembershipTool().__of__(self.site)
- def test_createMemberarea(self):
+ def test_createMemberArea(self):
mtool = self.mtool
members = self.site._setObject( 'Members', PortalFolder('Members') )
acl_users = self.site._setObject( 'acl_users', DummyUserFolder() )
wtool = self.site._setObject( 'portal_workflow', DummyTool() )
# permission
- mtool.createMemberarea('user_foo')
+ mtool.createMemberArea('user_foo')
self.failIf( hasattr(members.aq_self, 'user_foo') )
newSecurityManager(None, acl_users.user_bar)
- mtool.createMemberarea('user_foo')
+ mtool.createMemberArea('user_foo')
self.failIf( hasattr(members.aq_self, 'user_foo') )
newSecurityManager(None, acl_users.user_foo)
mtool.setMemberareaCreationFlag()
- mtool.createMemberarea('user_foo')
+ mtool.createMemberArea('user_foo')
self.failIf( hasattr(members.aq_self, 'user_foo') )
newSecurityManager(None, acl_users.all_powerful_Oz)
mtool.setMemberareaCreationFlag()
- mtool.createMemberarea('user_foo')
+ mtool.createMemberArea('user_foo')
self.failUnless( hasattr(members.aq_self, 'user_foo') )
# default content
More information about the CMF-checkins
mailing list