Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
GroupUserFolder.tests.testPloneTools.TestMethodProtection Class Reference

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 476 of file testPloneTools.py.


Member Function Documentation

Definition at line 479 of file testPloneTools.py.

00479 
00480     def afterSetUp(self):
00481         self.groups = self.portal.portal_groups
00482         self.groups.groupWorkspacesCreationFlag = 0
00483         self.groups.addGroup('foo')
00484         self.groupdata = self.groups.getGroupById('foo')

Definition at line 485 of file testPloneTools.py.

00485 
00486     def testAnonAddMember(self):
00487         self.logout()
00488         self.assertRaises(Unauthorized, self.groupdata.addMember, user_name)

Here is the call graph for this function:

Definition at line 489 of file testPloneTools.py.

00489 
00490     def testAnonRemoveMember(self):
00491         self.logout()
00492         self.assertRaises(Unauthorized, self.groupdata.removeMember, user_name)

Here is the call graph for this function:

Definition at line 499 of file testPloneTools.py.

00499 
00500     def testManagerAddMember(self):
00501         self.setPermissions([Permissions.manage_users])
00502         self.groupdata.addMember(user_name)

Here is the call graph for this function:

Definition at line 503 of file testPloneTools.py.

00503 
00504     def testManagerRemoveMember(self):
00505         self.setPermissions([Permissions.manage_users])
00506         self.groupdata.addMember(user_name)
00507         self.groupdata.removeMember(user_name)
00508 

Here is the call graph for this function:

Definition at line 493 of file testPloneTools.py.

00493 
00494     def testMemberAddMember(self):
00495         self.assertRaises(Unauthorized, self.groupdata.addMember, user_name)

Definition at line 496 of file testPloneTools.py.

00496 
00497     def testMemberRemoveMember(self):
00498         self.assertRaises(Unauthorized, self.groupdata.removeMember, user_name)


Member Data Documentation

Definition at line 483 of file testPloneTools.py.

Definition at line 480 of file testPloneTools.py.


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