Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
GroupUserFolder.tests.testPloneTools.GroupTestCase Class Reference
Inheritance diagram for GroupUserFolder.tests.testPloneTools.GroupTestCase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def afterSetUp

Public Attributes

 membership
 gruf
 groups
 prefix

Detailed Description

Definition at line 65 of file testPloneTools.py.


Member Function Documentation

Definition at line 67 of file testPloneTools.py.

00067 
00068     def afterSetUp(self):
00069         self.setRoles(['Manager'])
00070 
00071         # Basic assignements
00072         self.membership = self.portal.portal_membership
00073         self.gruf = self.portal.acl_users
00074         self.groups = self.portal.portal_groups
00075         self.prefix = self.gruf.getGroupPrefix()
00076         self.groups.groupWorkspacesCreationFlag = 0
00077 
00078         # Nuke Administators and Reviewers groups added in 2.1a2 migrations
00079         # (and any other migrated-in groups) to avoid test confusion
00080         self.groups.removeGroups(self.groups.listGroupIds())
00081 
00082         # Intial data
00083         self.groups.addGroup("grp")
00084         self.groups.addGroup("g1")
00085         self.groups.addGroup("g2")
00086         self.groups.addGroup("g3")
00087         self.groups.addGroup("g4")
00088         self.membership.addMember("u1", "secret", [], [])
00089         self.membership.addMember("u2", "secret", [], [])
00090         self.membership.addMember("u3", "secret", [], [])
00091         self.membership.addMember("u4", "secret", [], [])
00092         self.membership.addMember("u5", "secret", [], [])
00093         self.membership.addMember("u6", "secret", [], [])
00094         self.membership.addMember("u7", "secret", [], [])
00095         self.gruf.addMember("g1", "u2")
00096         self.gruf.addMember("g1", "u3")
00097         self.gruf.addMember("g1", "u4")
00098         self.gruf.addMember("g2", "u3")
00099         self.gruf.addMember("g2", "u4")
00100         self.gruf.addMember("g2", "u5")
00101         self.gruf.addMember("g3", "u4")
00102         self.gruf.addMember("g3", "u5")
00103         self.gruf.addMember("g3", "u6")
00104         self.gruf.addMember("g4", "u7")
00105 

Here is the call graph for this function:


Member Data Documentation

Definition at line 73 of file testPloneTools.py.

Definition at line 72 of file testPloneTools.py.

Definition at line 71 of file testPloneTools.py.

Definition at line 74 of file testPloneTools.py.


The documentation for this class was generated from the following file: