MCPcopy Index your code
hub / github.com/pydata/xarray / test_equals

Method test_equals

xarray/tests/test_coordinates.py:151–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

149 assert_identical(coords["y"], expected)
150
151 def test_equals(self):
152 coords = Coordinates(coords={"x": [0, 1, 2]})
153
154 assert coords.equals(coords)
155 # Test with a different Coordinates object instead of a string
156 other_coords = Coordinates(coords={"x": [3, 4, 5]})
157 assert not coords.equals(other_coords)
158
159 def test_identical(self):
160 coords = Coordinates(coords={"x": [0, 1, 2]})

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.95
CoordinatesClass · 0.90

Tested by

no test coverage detected