"""Permission definition tests."""
from app.permissions.definitions import ALL_PERMISSIONS, PERMISSION_PREFIXES


def test_all_permissions_use_hospitality_prefix():
    assert ALL_PERMISSIONS
    for permission in ALL_PERMISSIONS:
        assert permission.startswith("hospitality.")


def test_permission_prefixes_stable():
    assert "hospitality." in PERMISSION_PREFIXES
    assert "hospitality.venues." in PERMISSION_PREFIXES
    assert "hospitality.bundles." in PERMISSION_PREFIXES
