Correct test of public groups.
@@ -428,16 +428,17 @@ class TestCommunities(MockIRODSTestCaseMixin, TestCase):
self.assertTrue(is_equal_to_as_set(self.bat2.uaccess.view_groups,
[self.bats]))
+ # all groups are public --> can view all of them.
self.assertTrue(self.dog2.uaccess.can_view_group(self.dogs))
- self.assertFalse(self.dog2.uaccess.can_view_group(self.cats))
- self.assertFalse(self.dog2.uaccess.can_view_group(self.bats))
+ self.assertTrue(self.dog2.uaccess.can_view_group(self.cats))
+ self.assertTrue(self.dog2.uaccess.can_view_group(self.bats))
- self.assertFalse(self.cat2.uaccess.can_view_group(self.dogs))
+ self.assertTrue(self.cat2.uaccess.can_view_group(self.dogs))
self.assertTrue(self.cat2.uaccess.can_view_group(self.cats))
- self.assertFalse(self.cat2.uaccess.can_view_group(self.bats))
+ self.assertTrue(self.cat2.uaccess.can_view_group(self.bats))
- self.assertFalse(self.bat2.uaccess.can_view_group(self.dogs))
- self.assertFalse(self.bat2.uaccess.can_view_group(self.cats))
+ self.assertTrue(self.bat2.uaccess.can_view_group(self.dogs))
+ self.assertTrue(self.bat2.uaccess.can_view_group(self.cats))
self.assertTrue(self.bat2.uaccess.can_view_group(self.bats))
self.assertTrue(is_equal_to_as_set(self.dog2.uaccess.edit_groups, []))
