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

Method test_delete

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

Source from the content-addressed store, hash-verified

2001 assert "source_path" not in copy.deepcopy(c).__dict__
2002
2003 def test_delete(self):
2004 c = _make_internal()
2005 del c.source_path
2006 assert not hasattr(c, "source_path")
2007 with pytest.raises(AttributeError):
2008 del c.source_path
2009 assert c.to_dict()["name"] == "app"
2010
2011 def test_frozen(self):
2012 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