class_docstr: Test the commands of the prompt
class_docstr_tok: ["Test","the","commands","of","the","prompt"]
docstr: Verify error message is given when default value is invalid
docstr_tok: ["Verify","error","message","is","given","when","default","value","is","invalid"]
code: def test_remove_dim_with_bad_default(
      self, capsys, conflicts, branch_solver_prompt
  ):
      """Verify error message is given when default value is invalid"""
      assert len(conflicts.get_resolved()) == 0
      branch_solver_prompt.do_remove("missing --default-value='bad'")
      out, err = capsys.readouterr()
      assert "could not convert string to float: 'bad'" 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 17 for calling the TestCommands obj's underlying member method code with example usage: obj.test_remove_dim_with_bad_default(capsys, conflicts, branch_solver_prompt) without return types