class_docstr: Test the commands of the prompt
class_docstr_tok: ["Test","the","commands","of","the","prompt"]
docstr: Verify error messages when attempting invalid renamings
docstr_tok: ["Verify","error","messages","when","attempting","invalid","renamings"]
code: def test_rename_bad_dim(
      self, capsys, conflicts, branch_solver_prompt
  ):
      """Verify error messages when attempting invalid renamings"""
      assert len(conflicts.get_resolved()) == 0
      assert len(conflicts.get()) == 12
      branch_solver_prompt.do_rename("new_cat new")
      out, err = capsys.readouterr()
      assert "Dimension name 'new_cat' not found in conflicts" in out
      assert len(conflicts.get_resolved()) == 0
      assert len(conflicts.get()) == 12
  
      assert len(conflicts.get_resolved()) == 0
      assert len(conflicts.get()) == 12
      branch_solver_prompt.do_rename("missing missing_cat")
      out, err = capsys.readouterr()
      assert (
          "Dimension name 'missing_cat' not found in conflicts" in out
      )
      assert len(conflicts.get_resolved()) == 0
      assert len(conflicts.get()) == 12
  
imports: import shlex
  import pytest
  from orion.core import evc
  from orion.core.io.experiment_branch_builder import ExperimentBranchBuilder
  from orion.core.io.interactive_commands.branching_prompt import BranchingPrompt
  from orion.core.io.space_builder import DimensionBuilder
label_desc: Use image node_id 24 for calling the TestCommands obj's underlying member method code with example usage: obj.test_rename_bad_dim(capsys, conflicts, branch_solver_prompt) without return types