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

Method test_delete

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

Source from the content-addressed store, hash-verified

1936 assert "source_path" not in copy.deepcopy(c).__dict__
1937
1938 def test_delete(self):
1939 c = _make_internal()
1940 del c.source_path
1941 assert not hasattr(c, "source_path")
1942 with pytest.raises(AttributeError):
1943 del c.source_path
1944 assert c.to_dict()["name"] == "app"
1945
1946 def test_frozen(self):
1947 f = _InternalBox({"a": 1}, frozen_box=True)

Callers

nothing calls this directly

Calls 2

_make_internalFunction · 0.85
to_dictMethod · 0.80

Tested by

no test coverage detected