Commit af29eb8f authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: Assignment local roles

parent 94d11d8d
...@@ -377,13 +377,14 @@ class TestAllocationSupply(TestSlapOSGroupRoleSecurityMixin): ...@@ -377,13 +377,14 @@ class TestAllocationSupply(TestSlapOSGroupRoleSecurityMixin):
class TestAssignment(TestSlapOSGroupRoleSecurityMixin): class TestAssignment(TestSlapOSGroupRoleSecurityMixin):
def test_Assignment_Company_Group(self): def test_Assignment_Sale(self):
assignment = self.portal.person_module.newContent( assignment = self.portal.person_module.newContent(
portal_type='Person').newContent(portal_type='Assignment') portal_type='Person').newContent(portal_type='Assignment')
self.assertSecurityGroup(assignment, self.assertSecurityGroup(assignment,
['F-IS*', self.user_id], False) [self.user_id, 'F-SALEAGT', 'F-SALEMAN'], False)
self.assertRoles(assignment, 'F-IS*', ['Auditor'])
self.assertRoles(assignment, self.user_id, ['Owner']) self.assertRoles(assignment, self.user_id, ['Owner'])
self.assertRoles(assignment, 'F-SALEMAN', ['Assignor'])
self.assertRoles(assignment, 'F-SALEAGT', ['Assignee'])
class TestComputeNodeModule(TestSlapOSGroupRoleSecurityMixin): class TestComputeNodeModule(TestSlapOSGroupRoleSecurityMixin):
......
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