MCPcopy Create free account
hub / github.com/dask/dask / test_get_with_nested_list

Method test_get_with_nested_list

dask/utils_test.py:117–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 assert self.get(d, "f") == [[[6, [1, 2]], 6], 2]
116
117 def test_get_with_nested_list(self):
118 d = {"x": 1, "y": 2, "z": (sum, ["x", "y"])}
119
120 assert self.get(d, [["x"], "y"]) == ((1,), 2)
121 assert self.get(d, "z") == 3
122
123 def test_get_works_with_unhashables_in_values(self):
124 f = lambda x, y: x + len(y)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected