MCPcopy
hub / github.com/django/django / test_wsgi_cookies

Method test_wsgi_cookies

tests/wsgi/tests.py:52–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50 )
51
52 def test_wsgi_cookies(self):
53 response_data = {}
54
55 def start_response(status, headers):
56 response_data["headers"] = headers
57
58 application = get_wsgi_application()
59 environ = self.request_factory._base_environ(
60 PATH_INFO="/cookie/", REQUEST_METHOD="GET"
61 )
62 application(environ, start_response)
63 self.assertIn(("Set-Cookie", "key=value; Path=/"), response_data["headers"])
64
65 def test_file_wrapper(self):
66 """

Callers

nothing calls this directly

Calls 2

get_wsgi_applicationFunction · 0.90
_base_environMethod · 0.80

Tested by

no test coverage detected