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

Method test_conversion_box

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

Source from the content-addressed store, hash-verified

575 Box.from_yaml("lol")
576
577 def test_conversion_box(self):
578 bx = Box(extended_test_dict, conversion_box=True)
579 assert bx.Key_2.Key_3 == "Value 3"
580 assert bx.x3 == "howdy"
581 assert bx.xnot == "true"
582 assert bx.x3_4 == "test"
583 with pytest.raises(AttributeError):
584 getattr(bx, "(3, 4)")
585
586 def test_frozen(self):
587 bx = Box(extended_test_dict, frozen_box=True)

Callers

nothing calls this directly

Calls 1

BoxClass · 0.90

Tested by

no test coverage detected