Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PlonePAS.tests.test_groups_tool.TestMethodProtection Class Reference
Inheritance diagram for PlonePAS.tests.test_groups_tool.TestMethodProtection:
Inheritance graph
[legend]
Collaboration diagram for PlonePAS.tests.test_groups_tool.TestMethodProtection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testAnonAddMember
def testAnonRemoveMember
def testMemberAddMember
def testMemberRemoveMember
def testManagerAddMember
def testManagerRemoveMember

Public Attributes

 groups
 groupdata

Detailed Description

Definition at line 113 of file test_groups_tool.py.


Member Function Documentation

Definition at line 116 of file test_groups_tool.py.

00116 
00117     def afterSetUp(self):
00118         self.groups = self.portal.portal_groups
00119         self.groups.groupWorkspacesCreationFlag = 0
00120         self.groups.addGroup('foo')
00121         self.groupdata = self.groups.getGroupById('foo')

Definition at line 122 of file test_groups_tool.py.

00122 
00123     def testAnonAddMember(self):
00124         self.logout()
00125         self.assertRaises(Unauthorized, self.groupdata.addMember, user_name)

Here is the call graph for this function:

Definition at line 126 of file test_groups_tool.py.

00126 
00127     def testAnonRemoveMember(self):
00128         self.logout()
00129         self.assertRaises(Unauthorized, self.groupdata.removeMember, user_name)

Here is the call graph for this function:

Definition at line 136 of file test_groups_tool.py.

00136 
00137     def testManagerAddMember(self):
00138         self.setPermissions([Permissions.manage_users])
00139         self.groupdata.addMember(user_name)

Here is the call graph for this function:

Definition at line 140 of file test_groups_tool.py.

00140 
00141     def testManagerRemoveMember(self):
00142         self.setPermissions([Permissions.manage_users])
00143         self.groupdata.addMember(user_name)
00144         self.groupdata.removeMember(user_name)
00145 
00146 

Here is the call graph for this function:

Definition at line 130 of file test_groups_tool.py.

00130 
00131     def testMemberAddMember(self):
00132         self.assertRaises(Unauthorized, self.groupdata.addMember, user_name)

Definition at line 133 of file test_groups_tool.py.

00133 
00134     def testMemberRemoveMember(self):
00135         self.assertRaises(Unauthorized, self.groupdata.removeMember, user_name)


Member Data Documentation

Definition at line 120 of file test_groups_tool.py.

Definition at line 117 of file test_groups_tool.py.


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