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

Method test_item_assignment_is_data

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

Source from the content-addressed store, hash-verified

1981 assert "source_path" in c
1982
1983 def test_item_assignment_is_data(self):
1984 c = _InternalBox()
1985 c["source_path"] = 5
1986 assert c.to_dict() == {"source_path": 5}
1987 assert c.source_path is None
1988
1989 def test_internal_checked_before_protected_keys(self):
1990 class Weird(Box):

Callers

nothing calls this directly

Calls 2

_InternalBoxClass · 0.85
to_dictMethod · 0.80

Tested by

no test coverage detected