def test_filter_for_obj_permission(self):
        obj_permission =\
            ObjectPermission.objects.get_or_create_for_object_or_class(
                "can_read_val", self.o3)[0]
        
        permittees = Permittee.objects.filter_for_obj_permission(
            obj_permission, can_delegate=False)
        self.assertEqual(
            set(permittees),
            set([Permittee.objects.get_as_permittee(obj) \
                 for obj in [self.su, self.u1, self.u2]])
        )

        permittees = Permittee.objects.filter_for_obj_permission(
            obj_permission, can_delegate=True)
        self.assertEqual(
            set(permittees),
            set([Permittee.objects.get_as_permittee(obj) \
                 for obj in [self.su, self.u1]])
        )
Register a set of configurations with the default config module.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/tests/tests.py/TestObjectPermissions.test_filter_for_obj_permission--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/lib_config.py/register