code: def test_confirm_name(monkeypatch, single_with_trials):
      """Test name must be confirmed for deletion"""
  
      def incorrect_name(*args):
          return "oops"
  
      monkeypatch.setattr("builtins.input", incorrect_name)
  
      with pytest.raises(SystemExit):
          execute("db rm test_single_exp")
  
      def correct_name(*args):
          return "test_single_exp"
  
      monkeypatch.setattr("builtins.input", correct_name)
  
      assert len(setup_storage().fetch_experiments({})) == 1
      execute("db rm test_single_exp")
      assert len(setup_storage().fetch_experiments({})) == 0
  
file_path: orion/tests/functional/commands/test_db_rm.py
imports: import zlib
  import pytest
  import orion.core.cli
  from orion.storage.base import setup_storage
label_desc: Use image node_id 4 for calling a global function with example usage: test_confirm_name(monkeypatch, single_with_trials) and returns: str, str