code: def test_flask_cli_should_display_routes(self, capsys):
      with mock.patch.dict(
          "os.environ", FLASK_APP="airflow.www.app:cached_app"
      ), mock.patch.object(
          sys, "argv", ["flask", "routes"]
      ), pytest.raises(
          SystemExit
      ):
          from flask import __main__
  
          # We are not using run_module because of https://github.com/pytest-dev/pytest/issues/9007
          runpy.run_path(__main__.__file__, run_name="main")
  
      output = capsys.readouterr()
      assert "/login/" in output.out
  
imports: from __future__ import annotations
  import hashlib
  import re
  import runpy
  import sys
  from datetime import timedelta
  from unittest import mock
  import pytest
  from werkzeug.routing import Rule
  from werkzeug.test import create_environ
  from werkzeug.wrappers import Response
  from airflow.exceptions import AirflowConfigException
  from airflow.www import app
  from tests.test_utils.config import conf_vars
  from tests.test_utils.decorators import dont_initialize_flask_app_submodules
label_desc: Use image node_id 1 for calling the TestFlaskCli obj's underlying member method code with example usage: obj.test_flask_cli_should_display_routes(capsys) without return types