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

Method test_equals_failures

xarray/tests/test_dataarray.py:636–640  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 assert not expected.identical(actual)
635
636 def test_equals_failures(self) -> None:
637 orig = DataArray(np.arange(5.0), {"a": 42}, dims="x")
638 assert not orig.equals(np.arange(5)) # type: ignore[arg-type]
639 assert not orig.identical(123) # type: ignore[arg-type]
640 assert not orig.broadcast_equals({1: 2}) # type: ignore[arg-type]
641
642 def test_broadcast_equals(self) -> None:
643 a = DataArray([0, 0], {"y": 0}, dims="x")

Callers

nothing calls this directly

Calls 5

equalsMethod · 0.95
identicalMethod · 0.95
broadcast_equalsMethod · 0.95
DataArrayClass · 0.90
arangeMethod · 0.80

Tested by

no test coverage detected