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

Method test_roundtrip_via_bytes

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

Source from the content-addressed store, hash-verified

2524 assert_identical(roundtrip, original)
2525
2526 def test_roundtrip_via_bytes(self) -> None:
2527 original = create_test_data()
2528 result = bytes(original.to_netcdf(engine=self.engine))
2529 roundtrip = load_dataset(result, engine=self.engine)
2530 assert_identical(roundtrip, original)
2531
2532 def test_pickle_open_dataset_from_bytes(self) -> None:
2533 original = Dataset({"foo": ("x", [1, 2, 3])})

Callers

nothing calls this directly

Calls 4

load_datasetFunction · 0.90
assert_identicalFunction · 0.90
create_test_dataFunction · 0.85
to_netcdfMethod · 0.45

Tested by

no test coverage detected