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

Method test_issue_274

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

Source from the content-addressed store, hash-verified

2166
2167class TestCreateOnSetWithoutCreateOnGet:
2168 def test_issue_274(self):
2169 b = _no_create_box()
2170 assert b.foo.bar == Box()
2171 assert b == {}
2172 b.foo.bar = 1
2173 assert b.to_dict() == {"foo": {"bar": 1}}
2174
2175 def test_reads_never_create(self):
2176 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