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

Function test_ishashable

dask/tests/test_core.py:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35
36
37def test_ishashable():
38 class C:
39 pass
40
41 assert ishashable("x")
42 assert ishashable(1)
43 assert ishashable(C())
44 assert ishashable((1, 2))
45 assert not ishashable([1, 2])
46 assert not ishashable({1: 2})
47
48
49def test_iskey():

Callers

nothing calls this directly

Calls 2

ishashableFunction · 0.90
CClass · 0.70

Tested by

no test coverage detected