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

Method test_attrs

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

Source from the content-addressed store, hash-verified

1133 assert not data1.identical(data2)
1134
1135 def test_attrs(self) -> None:
1136 data = create_test_data(seed=42)
1137 data.attrs = {"foobar": "baz"}
1138 assert data.attrs["foobar"], "baz"
1139 assert isinstance(data.attrs, dict)
1140
1141 def test_chunks_does_not_load_data(self) -> None:
1142 # regression test for GH6538

Callers

nothing calls this directly

Calls 1

create_test_dataFunction · 0.90

Tested by

no test coverage detected