'When no prior CSRF cookie exists, check that the cookie is created, even
if only CsrfViewMiddleware is used.'

def test_process_response_no_csrf_cookie_view_only_get_token_used(self):

    req = self._get_GET_no_csrf_cookie_request()
    CsrfViewMiddleware().process_view(req, token_view, (), {})
    resp = token_view(req)
    resp2 = CsrfViewMiddleware().process_response(req, resp)
    csrf_cookie = resp2.cookies.get(settings.CSRF_COOKIE_NAME, False)
    self.assertNotEqual(csrf_cookie, False)
