MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / test_nested_brackets

Function test_nested_brackets

tests/test_qs.py:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def test_nested_brackets() -> None:
39 assert unquote(stringify({"a": {"b": "c"}})) == "a[b]=c"
40 assert unquote(stringify({"a": {"b": "c", "d": "e", "f": "g"}})) == "a[b]=c&a[d]=e&a[f]=g"
41 assert unquote(stringify({"a": {"b": {"c": {"d": "e"}}}})) == "a[b][c][d]=e"
42 assert unquote(stringify({"a": {"b": True}})) == "a[b]=true"
43
44
45@pytest.mark.parametrize("method", ["class", "function"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected