Commit 5499e721 authored by Łukasz Nowak's avatar Łukasz Nowak

Assert Owner role.

parent cd847c1a
...@@ -141,6 +141,7 @@ class TestComputerModelModule(TestSlapOSGroupRoleSecurityMixin): ...@@ -141,6 +141,7 @@ class TestComputerModelModule(TestSlapOSGroupRoleSecurityMixin):
self.assertSecurityGroup(module, self.assertSecurityGroup(module,
['R-MEMBER', 'zope'], False) ['R-MEMBER', 'zope'], False)
self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author']) self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author'])
self.assertRoles(module, 'zope', ['Owner'])
class TestComputerModule(TestSlapOSGroupRoleSecurityMixin): class TestComputerModule(TestSlapOSGroupRoleSecurityMixin):
def test(self): def test(self):
...@@ -150,6 +151,7 @@ class TestComputerModule(TestSlapOSGroupRoleSecurityMixin): ...@@ -150,6 +151,7 @@ class TestComputerModule(TestSlapOSGroupRoleSecurityMixin):
self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author']) self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author'])
self.assertRoles(module, 'R-COMPUTER', ['Auditor']) self.assertRoles(module, 'R-COMPUTER', ['Auditor'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor']) self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(module, 'zope', ['Owner'])
class TestComputerNetwork(TestSlapOSGroupRoleSecurityMixin): class TestComputerNetwork(TestSlapOSGroupRoleSecurityMixin):
def test_GroupCompany(self): def test_GroupCompany(self):
...@@ -182,6 +184,7 @@ class TestComputerNetworkModule(TestSlapOSGroupRoleSecurityMixin): ...@@ -182,6 +184,7 @@ class TestComputerNetworkModule(TestSlapOSGroupRoleSecurityMixin):
['R-MEMBER', 'R-SHADOW-PERSON', 'zope'], False) ['R-MEMBER', 'R-SHADOW-PERSON', 'zope'], False)
self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author']) self.assertRoles(module, 'R-MEMBER', ['Auditor', 'Author'])
self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor']) self.assertRoles(module, 'R-SHADOW-PERSON', ['Auditor'])
self.assertRoles(module, 'zope', ['Owner'])
class TestComputerPartition(TestSlapOSGroupRoleSecurityMixin): class TestComputerPartition(TestSlapOSGroupRoleSecurityMixin):
def test_CustomerOfThePartition(self): def test_CustomerOfThePartition(self):
......
41 42
\ 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