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

Method test_issue_274

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

Source from the content-addressed store, hash-verified

2231
2232class TestCreateOnSetWithoutCreateOnGet:
2233 def test_issue_274(self):
2234 b = _no_create_box()
2235 assert b.foo.bar == Box()
2236 assert b == {}
2237 b.foo.bar = 1
2238 assert b.to_dict() == {"foo": {"bar": 1}}
2239
2240 def test_reads_never_create(self):
2241 b = _no_create_box()

Callers

nothing calls this directly

Calls 3

BoxClass · 0.90
_no_create_boxFunction · 0.85
to_dictMethod · 0.80

Tested by

no test coverage detected