assert_dim_file_equal

assert_dim_file_equal#

assert_dim_file_equal(path_1: str | CloudPath | Path, path_2: str | CloudPath | Path) → None[source]#

Assert that two .dim files are equal.

Useful for pytests.

Parameters:

Example

>>> path = r"CI/DATA/rasters/raster.dim"
>>> assert_dim_file_equal(path, path)
>>> # Raises AssertionError if sth goes wrong