MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_get_cookies_single

Method test_get_cookies_single

test/mitmproxy/test_http.py:334–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 assert not request.cookies
333
334 def test_get_cookies_single(self):
335 request = treq()
336 request.headers = Headers(cookie="cookiename=cookievalue")
337 assert len(request.cookies) == 1
338 assert request.cookies["cookiename"] == "cookievalue"
339
340 def test_get_cookies_double(self):
341 request = treq()

Callers

nothing calls this directly

Calls 2

treqFunction · 0.90
HeadersClass · 0.90

Tested by

no test coverage detected