Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ test_repr
Function
test_repr
tests/test_models.py:198–201 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
196
197
198
def
test_repr() -> None:
199
model = BasicModel(foo=
"bar"
)
200
assert str(model) ==
"BasicModel(foo='bar')"
201
assert repr(model) ==
"BasicModel(foo='bar')"
202
203
204
def
test_repr_nested_model() -> None:
Callers
nothing calls this directly
Calls
1
BasicModel
Class · 0.85
Tested by
no test coverage detected