Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdgriffith/Box
/ Sub
Class
Sub
test/test_box.py:2107–2108 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2105
2106
def
test_copy_preserves_subclass():
2107
class
Sub(Box):
2108
pass
2109
2110
s = Sub({
"a"
: {
"b"
: 1}}, default_box=True)
2111
assert type(s.copy()) is Sub
Callers
2
test_copy_preserves_subclass
Function · 0.70
test_subclass_keeps_type
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_copy_preserves_subclass
Function · 0.56
test_subclass_keeps_type
Method · 0.56