def test_coordinate_operation__from_authority__empty(): with pytest.raises(CRSError, match="Invalid authority"): CoordinateOperation.from_authority("BOB", 4326)
def test_coordinate_operation__from_authority(): cc = CoordinateOperation.from_authority("EPSG", 16031) assert cc.method_auth_name == "EPSG" assert cc.method_code == "9807"