[CMF-checkins] CVS: CMF/CMFCore/tests - test_MembershipTool.py:1.3.2.1

Yvo Schubbe schubbe@web.de
Thu, 29 May 2003 10:40:29 -0400


Update of /cvs-repository/CMF/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv13035/CMFCore/tests

Modified Files:
      Tag: yuppie-createMemberarea-branch
	test_MembershipTool.py 
Log Message:
changed member area creation:
- made logged_in page instead of wrapUser call 'createMemberarea'
- made MembershipTool folderish to store skeleton content inside
- added a hook to 'createMemberarea' to customize member content creation
- adjusted tests

=== CMF/CMFCore/tests/test_MembershipTool.py 1.3 => 1.3.2.1 ===
--- CMF/CMFCore/tests/test_MembershipTool.py:1.3	Wed May 28 06:57:42 2003
+++ CMF/CMFCore/tests/test_MembershipTool.py	Thu May 29 10:39:58 2003
@@ -52,13 +52,13 @@
 
     def test_createMemberarea(self):
         mtool = self.mtool
-        self.site._setObject( 'Members', PortalFolder('Members') )
-        self.site._setObject( 'acl_users', DummyUserFolder() )
-        self.site._setObject( 'portal_workflow', DummyTool() )
+        members = self.site._setObject( 'Members', PortalFolder('Members') )
+        acl_users = self.site._setObject( 'acl_users', DummyUserFolder() )
+        wtool = self.site._setObject( 'portal_workflow', DummyTool() )
         mtool.createMemberarea('user_foo')
 
-        f = self.site.Members.user_foo
-        ownership = self.site.acl_users.user_foo
+        f = members.user_foo
+        ownership = acl_users.user_foo
         localroles = ( ( 'user_foo', ('Owner',) ), )
         self.assertEqual( f.getOwner(), ownership )
         self.assertEqual( f.get_local_roles(), localroles,