code: def test_failure(self):
      with self.app.test_client() as test_client:
          response = test_client.get("/api/v1/pools")
          assert response.status_code == 401
          assert (
              response.headers["Content-Type"]
              == "application/problem+json"
          )
          assert_401(response)
  
imports: from __future__ import annotations
  from base64 import b64encode
  import pytest
  from flask_login import current_user
  from tests.test_utils.api_connexion_utils import assert_401
  from tests.test_utils.config import conf_vars
  from tests.test_utils.db import clear_db_pools
  from tests.test_utils.www import client_with_login
label_desc: Use image node_id 3 for calling the TestSessionAuth obj's underlying member method code with example usage: obj.test_failure() without return types