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

Method test_coords_setitem_multiindex

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

Source from the content-addressed store, hash-verified

956 assert_identical(expected, actual)
957
958 def test_coords_setitem_multiindex(self) -> None:
959 data = create_test_multiindex()
960 with pytest.raises(ValueError, match=r"cannot drop or update.*corrupt.*index "):
961 data.coords["level_1"] = range(4)
962
963 def test_coords_set(self) -> None:
964 one_coord = Dataset({"x": ("x", [0]), "yy": ("x", [1]), "zzz": ("x", [2])})

Callers

nothing calls this directly

Calls 1

create_test_multiindexFunction · 0.85

Tested by

no test coverage detected