assert_basic_response() — anthropic-sdk-python Function Reference
Architecture documentation for the assert_basic_response() function in test_beta_messages.py from the anthropic-sdk-python codebase.
Entity Profile
Dependency Diagram
graph TD 91cf480e_9510_5f3d_ae64_10ee575eb62f["assert_basic_response()"] 239f7d64_6d26_d418_04e3_d586fe367986["test_beta_messages.py"] 91cf480e_9510_5f3d_ae64_10ee575eb62f -->|defined in| 239f7d64_6d26_d418_04e3_d586fe367986 da1cbf37_7a91_5789_d4cd_1ad1fab89ef7["test_basic_response()"] da1cbf37_7a91_5789_d4cd_1ad1fab89ef7 -->|calls| 91cf480e_9510_5f3d_ae64_10ee575eb62f 71579650_ff21_691c_21c9_e39db60bb3bc["test_basic_response()"] 71579650_ff21_691c_21c9_e39db60bb3bc -->|calls| 91cf480e_9510_5f3d_ae64_10ee575eb62f b6dcecb2_d1cc_b379_c8e2_2beae6f86849["assert_message_matches()"] 91cf480e_9510_5f3d_ae64_10ee575eb62f -->|calls| b6dcecb2_d1cc_b379_c8e2_2beae6f86849 style 91cf480e_9510_5f3d_ae64_10ee575eb62f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/lib/streaming/test_beta_messages.py lines 173–175
def assert_basic_response(events: list[ParsedBetaMessageStreamEvent], message: BetaMessage) -> None:
assert_message_matches(message, EXPECTED_BASIC_MESSAGE)
assert [e.type for e in events] == EXPECTED_BASIC_EVENT_TYPES
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does assert_basic_response() do?
assert_basic_response() is a function in the anthropic-sdk-python codebase, defined in tests/lib/streaming/test_beta_messages.py.
Where is assert_basic_response() defined?
assert_basic_response() is defined in tests/lib/streaming/test_beta_messages.py at line 173.
What does assert_basic_response() call?
assert_basic_response() calls 1 function(s): assert_message_matches.
What calls assert_basic_response()?
assert_basic_response() is called by 2 function(s): test_basic_response, test_basic_response.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free