Commit ceb0117d authored by Łukasz Nowak's avatar Łukasz Nowak

Use more generic group.

parent 2d770e24
...@@ -178,14 +178,14 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin): ...@@ -178,14 +178,14 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
# add to group category # add to group category
self.login() self.login()
person.newContent(portal_type='Assignment', group='vifib').open() person.newContent(portal_type='Assignment', group='company').open()
person.recursiveImmediateReindexObject() person.recursiveImmediateReindexObject()
self.portal.portal_caches.clearAllCache() self.portal.portal_caches.clearAllCache()
self.login(reference) self.login(reference)
user = getSecurityManager().getUser() user = getSecurityManager().getUser()
self.assertTrue('Authenticated' in user.getRoles()) self.assertTrue('Authenticated' in user.getRoles())
self.assertSameSet(['G-VIFIB'], user.getGroups()) self.assertSameSet(['G-COMPANY'], user.getGroups())
# add to role category # add to role category
self.login() self.login()
...@@ -196,7 +196,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin): ...@@ -196,7 +196,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
self.login(reference) self.login(reference)
user = getSecurityManager().getUser() user = getSecurityManager().getUser()
self.assertTrue('Authenticated' in user.getRoles()) self.assertTrue('Authenticated' in user.getRoles())
self.assertSameSet(['R-MEMBER', 'G-VIFIB'], user.getGroups()) self.assertSameSet(['R-MEMBER', 'G-COMPANY'], user.getGroups())
def test_inactive(self): def test_inactive(self):
self.login() self.login()
......
223 224
\ 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