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

Method test_write_groups

xarray/tests/test_backends.py:1797–1806  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1795 assert_equal(actual["x"], expected["x"])
1796
1797 def test_write_groups(self) -> None:
1798 data1 = create_test_data()
1799 data2 = data1 * 2
1800 with create_tmp_file() as tmp_file:
1801 self.save(data1, tmp_file, group="data/1")
1802 self.save(data2, tmp_file, group="data/2", mode="a")
1803 with self.open(tmp_file, group="data/1") as actual1:
1804 assert_identical(data1, actual1)
1805 with self.open(tmp_file, group="data/2") as actual2:
1806 assert_identical(data2, actual2)
1807
1808 def test_child_group_with_inconsistent_dimensions(self) -> None:
1809 base = Dataset(coords={"x": [1, 2]})

Callers

nothing calls this directly

Calls 5

assert_identicalFunction · 0.90
create_test_dataFunction · 0.85
create_tmp_fileFunction · 0.85
saveMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected