'The ensure_csrf_cookie() decorator works without middleware.'

def test_ensures_csrf_cookie_no_middleware(self):

    req = self._get_GET_no_csrf_cookie_request()
    resp = ensure_csrf_cookie_view(req)
    self.assertTrue(resp.cookies.get(settings.CSRF_COOKIE_NAME, False))
    self.assertIn('Cookie', resp.get('Vary', ''))
