def test_has_obj_perm(self):
        
        permittees = has_obj_perm(self.o3, "can_read_val")
        self.assertEqual(
            set(permittees),
            set([Permittee.objects.get_as_permittee(obj) \
                 for obj in [self.su, self.u1, self.u2]])
        )
Tests that the C{has_obj_perm} template filter works.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/tests/tests.py/TestObjectPermissions.test_has_obj_perm