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

Method test_broadcast_equals

xarray/tests/test_dataset.py:1128–1133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1126 assert not data.broadcast_equals({1: 2}) # type: ignore[arg-type]
1127
1128 def test_broadcast_equals(self) -> None:
1129 data1 = Dataset(coords={"x": 0})
1130 data2 = Dataset(coords={"x": [0]})
1131 assert data1.broadcast_equals(data2)
1132 assert not data1.equals(data2)
1133 assert not data1.identical(data2)
1134
1135 def test_attrs(self) -> None:
1136 data = create_test_data(seed=42)

Callers

nothing calls this directly

Calls 4

broadcast_equalsMethod · 0.95
equalsMethod · 0.95
identicalMethod · 0.95
DatasetClass · 0.90

Tested by

no test coverage detected