def METHOD_NAME(self):
    # Not logged in yet
    self.clear_lru_cache()
    response = run_async(self.client.post, "/user/logout")
    self.assertEqual(response.status_code, 401)
    self.assertEqual(
        response.json(), {"detail": "Missing cookie access_token_cookie"}
    )
    # correct login
    self.login()
    response = run_async(self.client.post, "/user/logout")
    self.assertEqual(response.status_code, 200)
    # prevent second logout
    response = run_async(self.client.post, "/user/logout")
    self.assertEqual(response.status_code, 401)