Commit 887c1f9e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Add test for Invitation Token Module

parent 28c6acde
......@@ -2114,6 +2114,16 @@ class TestRegularisationRequest(TestSlapOSGroupRoleSecurityMixin):
self.assertPermissionsOfRole(product, 'Auditor',
['Access contents information', 'View'])
class TestInvitationTokenModule(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.invitation_token_module
self.changeOwnership(module)
self.assertSecurityGroup(module,
['G-COMPANY', 'R-MEMBER', self.user_id], False)
self.assertRoles(module, 'G-COMPANY', ['Auditor', 'Author'])
self.assertRoles(module, 'R-MEMBER', ['Author'])
self.assertRoles(module, self.user_id, ['Owner'])
class TestAccessTokenModule(TestSlapOSGroupRoleSecurityMixin):
def test(self):
module = self.portal.access_token_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment