MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_basic_box

Method test_basic_box

test/test_box.py:189–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 Box('{"k1": "v1", "k2": {"k3": "v2"}}')
188
189 def test_basic_box(self):
190 a = Box(one=1, two=2, three=3)
191 b = Box({"one": 1, "two": 2, "three": 3})
192 c = Box((zip(["one", "two", "three"], [1, 2, 3])))
193 d = Box(([("two", 2), ("one", 1), ("three", 3)]))
194 e = Box(({"three": 3, "one": 1, "two": 2}))
195 assert a == b == c == d == e
196
197 def test_protected_box_methods(self):
198 my_box = Box(a=3)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected