(self)
| 2166 | |
| 2167 | class 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() |
nothing calls this directly
no test coverage detected