MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_get_cookies_double

Method test_get_cookies_double

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

Source from the content-addressed store, hash-verified

338 assert request.cookies["cookiename"] == "cookievalue"
339
340 def test_get_cookies_double(self):
341 request = treq()
342 request.headers = Headers(
343 cookie="cookiename=cookievalue;othercookiename=othercookievalue"
344 )
345 result = request.cookies
346 assert len(result) == 2
347 assert result["cookiename"] == "cookievalue"
348 assert result["othercookiename"] == "othercookievalue"
349
350 def test_get_cookies_withequalsign(self):
351 request = treq()

Callers

nothing calls this directly

Calls 2

treqFunction · 0.90
HeadersClass · 0.90

Tested by

no test coverage detected