MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / assert_different_identities

Function assert_different_identities

tests/test_deepcopy.py:4–6  ·  view source on GitHub ↗
(obj1: object, obj2: object)

Source from the content-addressed store, hash-verified

2
3
4def assert_different_identities(obj1: object, obj2: object) -> None:
5 assert obj1 == obj2
6 assert id(obj1) != id(obj2)
7
8
9def test_simple_dict() -> None:

Callers 6

test_simple_dictFunction · 0.85
test_nested_dictFunction · 0.85
test_complex_nested_dictFunction · 0.85
test_simple_listFunction · 0.85
test_nested_listFunction · 0.85
test_ignores_other_typesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected