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

test_nested_dotted() — anthropic-sdk-python Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_qs.py lines 26–35

def test_nested_dotted(method: str) -> None:
    if method == "class":
        serialise = Querystring(nested_format="dots").stringify
    else:
        serialise = partial(stringify, nested_format="dots")

    assert unquote(serialise({"a": {"b": "c"}})) == "a.b=c"
    assert unquote(serialise({"a": {"b": "c", "d": "e", "f": "g"}})) == "a.b=c&a.d=e&a.f=g"
    assert unquote(serialise({"a": {"b": {"c": {"d": "e"}}}})) == "a.b.c.d=e"
    assert unquote(serialise({"a": {"b": True}})) == "a.b=true"

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free