mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-06 07:52:33 +00:00
first commit
This commit is contained in:
16
.venv/Lib/site-packages/traitlets/utils/tests/test_bunch.py
Normal file
16
.venv/Lib/site-packages/traitlets/utils/tests/test_bunch.py
Normal file
@ -0,0 +1,16 @@
|
||||
from ..bunch import Bunch
|
||||
|
||||
|
||||
def test_bunch():
|
||||
b = Bunch(x=5, y=10)
|
||||
assert "y" in b
|
||||
assert "x" in b
|
||||
assert b.x == 5
|
||||
b["a"] = "hi"
|
||||
assert b.a == "hi"
|
||||
|
||||
|
||||
def test_bunch_dir():
|
||||
b = Bunch(x=5, y=10)
|
||||
assert "x" in dir(b)
|
||||
assert "keys" in dir(b)
|
Reference in New Issue
Block a user