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

Method test_roundtrip_None_variable

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

Source from the content-addressed store, hash-verified

659 assert not actual.foo.variable._in_memory
660
661 def test_roundtrip_None_variable(self) -> None:
662 expected = Dataset({None: (("x", "y"), [[0, 1], [2, 3]])})
663 with self.roundtrip(expected) as actual:
664 assert_identical(expected, actual)
665
666 def test_roundtrip_object_dtype(self) -> None:
667 floats = np.array([0.0, 0.0, 1.0, 2.0, 3.0], dtype=object)

Callers

nothing calls this directly

Calls 3

roundtripMethod · 0.95
DatasetClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected