MCPcopy
hub / github.com/pydata/xarray / test_align_exact

Method test_align_exact

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

Source from the content-addressed store, hash-verified

2603 align(left, right, foo="bar") # type: ignore[call-overload]
2604
2605 def test_align_exact(self) -> None:
2606 left = xr.Dataset(coords={"x": [0, 1]})
2607 right = xr.Dataset(coords={"x": [1, 2]})
2608
2609 left1, left2 = xr.align(left, left, join="exact")
2610 assert_identical(left1, left)
2611 assert_identical(left2, left)
2612
2613 with pytest.raises(ValueError, match=r"cannot align.*join.*exact.*not equal.*"):
2614 xr.align(left, right, join="exact")
2615
2616 def test_align_override(self) -> None:
2617 left = xr.Dataset(coords={"x": [0, 1, 2]})

Callers

nothing calls this directly

Calls 2

assert_identicalFunction · 0.90
alignMethod · 0.80

Tested by

no test coverage detected