def _user_has_resource_db_permissions(self, resolver, user_db, resource_db, permission_types):
        self.assertTrue(isinstance(permission_types, (list, tuple)))
        self.assertTrue(len(permission_types) > 1)

        for permission_type in permission_types:
            result = resolver.user_has_resource_db_permission(
                user_db=user_db,
                resource_db=resource_db,
                permission_type=permission_type)

            if not result:
                return False

        return True
Method which verifies that user has all the provided permissions.
dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_rbac_resolvers.py/BasePermissionsResolverTestCase._user_has_resource_db_permissions