123
126
# Check the Vary header got patched correctly
124
127
self.assert_('Cookie' in resp2.get('Vary',''))
135
CsrfMiddleware().process_view(req, csrf_view_exempt(post_form_view), (), {})
126
146
def test_process_response_no_csrf_cookie_view_only_get_token_used(self):
128
148
When no prior CSRF cookie exists, check that the cookie is created, even