Commit 9882eb5c authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup a62e1d68

Wrong code has been "fixed".
parent 4c20f2f7
...@@ -78,7 +78,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin): ...@@ -78,7 +78,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
def test_ComputerModelModuleLocalRoles(self): def test_ComputerModelModuleLocalRoles(self):
module = self.portal.computer_model_module module = self.portal.computer_model_module
self.assertSecurityGroup(module, self.assertSecurityGroup(module,
['R-MEMBER', 'R-SHADOW', 'zope'], False) ['R-MEMBER', 'zope'], False)
self.assertRoles(module, 'R-MEMBER', ['Author', 'Auditor']) self.assertRoles(module, 'R-MEMBER', ['Author', 'Auditor'])
self.assertRoles(module, 'zope', ['Owner']) self.assertRoles(module, 'zope', ['Owner'])
...@@ -95,7 +95,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin): ...@@ -95,7 +95,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
Model = module.newContent(portal_type="Computer Model") Model = module.newContent(portal_type="Computer Model")
self.assertSecurityGroup(Model, self.assertSecurityGroup(Model,
['ERP5TypeTestCase', 'G-COMPANY', 'R-SHADOW'], False) ['ERP5TypeTestCase', 'G-COMPANY'], False)
self.assertRoles(Model, 'ERP5TypeTestCase', ['Owner']) self.assertRoles(Model, 'ERP5TypeTestCase', ['Owner'])
self.assertRoles(Model, 'G-COMPANY', ['Assignor']) self.assertRoles(Model, 'G-COMPANY', ['Assignor'])
......
...@@ -77,7 +77,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin): ...@@ -77,7 +77,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
def test_ComputerNetworkModuleLocalRoles(self): def test_ComputerNetworkModuleLocalRoles(self):
module = self.portal.computer_network_module module = self.portal.computer_network_module
self.assertSecurityGroup(module, ['R-MEMBER', 'ERP5TypeTestCase'], False) self.assertSecurityGroup(module, ['R-MEMBER', 'R-SHADOW',
'ERP5TypeTestCase'], False)
self.assertRoles(module, 'R-MEMBER', ['Author', 'Auditor']) self.assertRoles(module, 'R-MEMBER', ['Author', 'Auditor'])
self.assertRoles(module, 'zope', ['Owner']) self.assertRoles(module, 'zope', ['Owner'])
...@@ -93,7 +94,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin): ...@@ -93,7 +94,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
module = self.portal.computer_network_module module = self.portal.computer_network_module
network = module.newContent(portal_type="Computer Network") network = module.newContent(portal_type="Computer Network")
self.assertSecurityGroup(network, ['ERP5TypeTestCase', 'G-COMPANY'], False) self.assertSecurityGroup(network, ['ERP5TypeTestCase', 'G-COMPANY',
'R-SHADOW'], False)
self.assertRoles(network, 'ERP5TypeTestCase', ['Owner']) self.assertRoles(network, 'ERP5TypeTestCase', ['Owner'])
self.assertRoles(network, 'G-COMPANY', ['Assignor']) self.assertRoles(network, 'G-COMPANY', ['Assignor'])
......
477 478
\ No newline at end of file \ No newline at end of file
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