# -*- coding: utf-8 -*- # # Copyright (C) 2020 Mojib Wali. # # invenio-config-tugraz is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see LICENSE file for more # details. from invenio_config_tugraz.permissions import RecordIp def test_recordip(): generator = RecordIp() assert generator.needs() == [] assert generator.excludes() == [] assert generator.query_filter().to_dict() == {'match_all': {}}