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

Method test_dataset_diff_exception_n_neg

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

Source from the content-addressed store, hash-verified

6887 assert_equal(expected, actual)
6888
6889 def test_dataset_diff_exception_n_neg(self) -> None:
6890 ds = create_test_data(seed=1)
6891 with pytest.raises(ValueError, match=r"must be non-negative"):
6892 ds.diff("dim2", n=-1)
6893
6894 def test_dataset_diff_exception_label_str(self) -> None:
6895 ds = create_test_data(seed=1)

Callers

nothing calls this directly

Calls 2

create_test_dataFunction · 0.90
diffMethod · 0.45

Tested by

no test coverage detected