MCPcopy
hub / github.com/dask/dask / test_get

Method test_get

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

Source from the content-addressed store, hash-verified

44 """
45
46 def test_get(self):
47 d = {":x": 1, ":y": (inc, ":x"), ":z": (add, ":x", ":y")}
48
49 assert self.get(d, ":x") == 1
50 assert self.get(d, ":y") == 2
51 assert self.get(d, ":z") == 3
52
53 def test_badkey(self):
54 d = {":x": 1, ":y": (inc, ":x"), ":z": (add, ":x", ":y")}

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected