'Check that the token is inserted when a prior CSRF cookie exists'

def test_process_response_existing_csrf_cookie(self):

    req = self._get_GET_csrf_cookie_request()
    CsrfMiddleware().process_view(req, post_form_view, (), {})
    resp = post_form_response()
    resp_content = resp.content
    resp2 = CsrfMiddleware().process_response(req, resp)
    self.assertNotEqual(resp_content, resp2.content)
    self._check_token_present(resp2)
