Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
def
assert_different_identities(obj1: object, obj2: object) -> None:
5
assert obj1 == obj2
6
assert id(obj1) != id(obj2)
7
8
9
def
test_simple_dict() -> None:
Callers
6
test_simple_dict
Function · 0.85
test_nested_dict
Function · 0.85
test_complex_nested_dict
Function · 0.85
test_simple_list
Function · 0.85
test_nested_list
Function · 0.85
test_ignores_other_types
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected