def _get_group_cached_perms(self):
        if not self.group:
            return {}
        perms = Permission.objects.filter(
            group=self.group,
        )
        group_permissions = {}
        for perm in perms:
            group_permissions[(
                perm.object_id,
                perm.content_type_id,
                perm.codename,
                perm.approved,
            )] = True
        return group_permissions
Test the ability to retrieve the latest release.
dataset/ETHPy150Open jazzband/django-authority/authority/permissions.py/BasePermission._get_group_cached_perms--crossover with--dataset/ETHPy150Open sigmavirus24/github3.py/tests/integration/test_repos_repo.py/TestRepository.test_latest_release