def test_geojson(distribution):
    """
    Test if a DCAT:distribution is GeoJSON.
    """
    return (
        distribution.get("mediaType") == "application/vnd.geo+json"
        or distribution.get("format", "").lower() == "geojson"
    )