MCPcopy Create free account
hub / github.com/ipython/traitlets / test_bunch_dir

Function test_bunch_dir

tests/utils/test_bunch.py:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_bunch_dir():
16 b = Bunch(x=5, y=10)
17 assert "keys" in dir(b)
18 assert "x" in dir(b)
19 assert "z" not in dir(b)
20 b.z = 15
21 assert "z" in dir(b)

Callers

nothing calls this directly

Calls 1

BunchClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…