geopandas.testing.assert_geoseries_equal

geopandas.testing.assert_geoseries_equal(left, right, check_dtype=True, check_index_type=False, check_series_type=True, check_less_precise=False, check_geom_type=False, check_crs=True, normalize=False)

Test util for checking that two GeoSeries are equal.

Parameters
left, righttwo GeoSeries
check_dtypebool, default False

If True, check geo dtype [only included so it’s a drop-in replacement for assert_series_equal].

check_index_typebool, default False

Check that index types are equal.

check_series_typebool, default True

Check that both are same type (and are GeoSeries). If False, will attempt to convert both into GeoSeries.

check_less_precisebool, default False

If True, use geom_almost_equals. if False, use geom_equals.

check_geom_typebool, default False

If True, check that all the geom types are equal.

check_crs: bool, default True

If check_series_type is True, then also check that the crs matches.

normalize: bool, default False

If True, normalize the geometries before comparing equality. Typically useful with check_less_precise=True, which uses geom_almost_equals and requires exact coordinate order.