Home / Function/ test_nested_brackets() — anthropic-sdk-python Function Reference

test_nested_brackets() — anthropic-sdk-python Function Reference

Architecture documentation for the test_nested_brackets() function in test_qs.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  6863c0b7_f935_5c17_5a20_e007414f1298["test_nested_brackets()"]
  f0b34a63_809b_7308_2411_fc88725d50fa["test_qs.py"]
  6863c0b7_f935_5c17_5a20_e007414f1298 -->|defined in| f0b34a63_809b_7308_2411_fc88725d50fa
  style 6863c0b7_f935_5c17_5a20_e007414f1298 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_qs.py lines 38–42

def test_nested_brackets() -> None:
    assert unquote(stringify({"a": {"b": "c"}})) == "a[b]=c"
    assert unquote(stringify({"a": {"b": "c", "d": "e", "f": "g"}})) == "a[b]=c&a[d]=e&a[f]=g"
    assert unquote(stringify({"a": {"b": {"c": {"d": "e"}}}})) == "a[b][c][d]=e"
    assert unquote(stringify({"a": {"b": True}})) == "a[b]=true"

Subdomains

Defined In

Frequently Asked Questions

What does test_nested_brackets() do?
test_nested_brackets() is a function in the anthropic-sdk-python codebase, defined in tests/test_qs.py.
Where is test_nested_brackets() defined?
test_nested_brackets() is defined in tests/test_qs.py at line 38.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free