MCPcopy
hub / github.com/encode/httpx / test_cookies_repr

Function test_cookies_repr

tests/models/test_cookies.py:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89
90def test_cookies_repr():
91 cookies = httpx.Cookies()
92 cookies.set(name="foo", value="bar", domain="http://blah.com")
93 cookies.set(name="fizz", value="buzz", domain="http://hello.com")
94
95 assert repr(cookies) == (
96 "<Cookies[<Cookie foo=bar for http://blah.com />,"
97 " <Cookie fizz=buzz for http://hello.com />]>"
98 )

Callers

nothing calls this directly

Calls 1

setMethod · 0.95

Tested by

no test coverage detected