(self)
| 6506 | assert_identical(actual, original) |
| 6507 | |
| 6508 | def test_load_dataset(self) -> None: |
| 6509 | with create_tmp_file() as tmp: |
| 6510 | original = Dataset({"foo": ("x", np.random.randn(10))}) |
| 6511 | original.to_netcdf(tmp) |
| 6512 | ds = load_dataset(tmp) |
| 6513 | assert_identical(original, ds) |
| 6514 | # this would fail if we used open_dataset instead of load_dataset |
| 6515 | ds.to_netcdf(tmp) |
| 6516 | |
| 6517 | def test_load_dataarray(self) -> None: |
| 6518 | with create_tmp_file() as tmp: |
nothing calls this directly
no test coverage detected