def has_permission(self, obj=None):
        for permission in self.permissions:
            if not permission.has_permission(self.request, self, obj):
                return False
        return True
Check loosely all functions are called with right args.
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/viewmixins.py/PermissionMixin.has_permission--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/drivers/modules/test_deploy_utils.py/PhysicalWorkTestCase.test_deploy_whole_disk_image