(self)
| 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 | """ |
nothing calls this directly
no test coverage detected