def test_datum__from_authority(): dt = Datum.from_authority("EPSG", 6326) assert dt.name == get_wgs84_datum_name()
def test_datum__from_authority__invalid(): with pytest.raises(CRSError, match="Invalid authority"): Datum.from_authority("BOB", 1)
def test_datum__from_authority(): dt = Datum.from_authority("EPSG", 6326) assert dt.name == "World Geodetic System 1984 ensemble"