class_docstr: Test the commands of the prompt
class_docstr_tok: ["Test","the","commands","of","the","prompt"]
docstr: Verify that error message is given when dimension does not exist
docstr_tok: ["Verify","that","error","message","is","given","when","dimension","does","not","exist"]
code: def test_add_bad_dim(self, capsys, conflicts, branch_solver_prompt):
      """Verify that error message is given when dimension does not exist"""
      assert len(conflicts.get_resolved()) == 0
      branch_solver_prompt.do_add("idontexist")
      out, err = capsys.readouterr()
      assert "Dimension name 'idontexist' not found in conflicts" in out
      assert len(conflicts.get_resolved()) == 0
  
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 2 for calling the TestCommands obj's underlying member method code with example usage: obj.test_add_bad_dim(capsys, conflicts, branch_solver_prompt) without return types