Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def test_funky_group_ids_1
def test_funky_group_ids_2

Public Attributes

 gt
 gd
 gid

Detailed Description

Definition at line 85 of file test_groups_tool.py.


Member Function Documentation

Definition at line 87 of file test_groups_tool.py.

00087 
00088     def afterSetUp(self):
00089         self.gt = gt = getToolByName(self.portal, 'portal_groups')
00090         self.gd = gd = getToolByName(self.portal, 'portal_groupdata')
00091         # Enable group-area creation
00092         self.gt.groupWorkspacesCreationFlag = 1
00093         # Those are all valid chars in Zope.
00094         self.gid = "Group #1 - Houston, TX. ($100)"
00095         self.loginAsPortalOwner()

Definition at line 96 of file test_groups_tool.py.

00096 
00097     def test_funky_group_ids_1(self):
00098         gid = self.gid
00099         ginfo = (gid, ['Reviewer'], [],
00100                  {'email': 'group1@host.com',
00101                   'title': 'Group #1'})
00102         # Create a new Group
00103         self.gt.addGroup(*ginfo)

Definition at line 104 of file test_groups_tool.py.

00104 
00105     def test_funky_group_ids_2(self):
00106         # Forward-slash is not allowed
00107         gid = self.gid + '/'
00108         ginfo = (gid, ['Reviewer'], [],
00109                  {'email': 'group1@host.com',
00110                   'title': 'Group #1'})
00111         # Create a new Group
00112         self.failUnlessRaises(BadRequest, self.gt.addGroup, *ginfo)


Member Data Documentation

Definition at line 89 of file test_groups_tool.py.

Definition at line 93 of file test_groups_tool.py.

Definition at line 88 of file test_groups_tool.py.


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