[CMF-checkins] CVS: CMF/CMFDefault/tests - test_MembershipTool.py:1.9

Yvo Schubbe schubbe at web.de
Wed Sep 24 06:02:20 EDT 2003


Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv1184/CMFDefault/tests

Modified Files:
	test_MembershipTool.py 
Log Message:
Merged yuppie-deleteMembers-branch:
- Added deleteMemberData, deleteMemberArea and deleteLocalRoles.
- Added 'recursive' argument to deleteLocalRoles.
- Renamed createMemberarea to createMemberArea.
- Moved getMembersFolder to CMFCore.
- Added CMFCoreExceptions.py.
- Added 'Change local roles' Permission.


=== CMF/CMFDefault/tests/test_MembershipTool.py 1.8 => 1.9 ===
--- CMF/CMFDefault/tests/test_MembershipTool.py:1.8	Wed Jun 11 07:36:05 2003
+++ CMF/CMFDefault/tests/test_MembershipTool.py	Wed Sep 24 06:02:19 2003
@@ -70,25 +70,25 @@
         self.site.id = 'testSite'
         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
@@ -111,7 +111,7 @@
         # acquisition
         self.site.user_bar = 'test attribute'
         newSecurityManager(None, acl_users.user_bar)
-        mtool.createMemberarea('user_bar')
+        mtool.createMemberArea('user_bar')
         self.failUnless( hasattr(members.aq_self, 'user_bar'),
                          'CMF Collector issue #102 (acquisition bug)' )
 




More information about the CMF-checkins mailing list