MCPcopy
hub / github.com/encode/starlette / test_url_blank_params

Function test_url_blank_params

tests/test_datastructures.py:331–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330
331def test_url_blank_params() -> None:
332 q = QueryParams("a=123&abc&def&b=456")
333 assert "a" in q
334 assert "abc" in q
335 assert "def" in q
336 assert "b" in q
337 val = q.get("abc")
338 assert val is not None
339 assert len(val) == 0
340 assert len(q["a"]) == 3
341 assert list(q.keys()) == ["a", "abc", "def", "b"]
342
343
344def test_queryparams() -> None:

Callers

nothing calls this directly

Calls 3

QueryParamsClass · 0.90
getMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected