MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / test_complex_nested_dict

Function test_complex_nested_dict

tests/test_deepcopy.py:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_complex_nested_dict() -> None:
23 obj1 = {"foo": {"bar": [{"hello": "world"}]}}
24 obj2 = deepcopy_minimal(obj1)
25 assert_different_identities(obj1, obj2)
26 assert_different_identities(obj1["foo"], obj2["foo"])
27 assert_different_identities(obj1["foo"]["bar"], obj2["foo"]["bar"])
28 assert_different_identities(obj1["foo"]["bar"][0], obj2["foo"]["bar"][0])
29
30
31def test_simple_list() -> None:

Callers

nothing calls this directly

Calls 2

deepcopy_minimalFunction · 0.90

Tested by

no test coverage detected