Commit 68d9313d authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: test: update Currency check

parent 5b4d4aa9
...@@ -514,9 +514,10 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin): ...@@ -514,9 +514,10 @@ class TestCurrency(TestSlapOSGroupRoleSecurityMixin):
product = self.portal.currency_module.newContent( product = self.portal.currency_module.newContent(
portal_type='Currency') portal_type='Currency')
self.assertSecurityGroup(product, self.assertSecurityGroup(product,
['F-ACCOUNTING*', 'F-PRODUCTION*', self.user_id, ['F-ACCMAN', 'F-ACCAGT', 'F-PRODUCTION*', self.user_id,
'R-SHADOW-PERSON', 'F-CUSTOMER', 'F-SALE*'], False) 'R-SHADOW-PERSON', 'F-CUSTOMER', 'F-SALE*'], False)
self.assertRoles(product, 'F-ACCOUNTING*', ['Auditor', 'Author']) self.assertRoles(product, 'F-ACCMAN', ['Assignor'])
self.assertRoles(product, 'F-ACCAGT', ['Assignee'])
self.assertRoles(product, 'R-SHADOW-PERSON', ['Auditor']) self.assertRoles(product, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(product, 'F-PRODUCTION*', ['Auditor']) self.assertRoles(product, 'F-PRODUCTION*', ['Auditor'])
self.assertRoles(product, 'F-CUSTOMER', ['Auditor']) self.assertRoles(product, 'F-CUSTOMER', ['Auditor'])
......
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