class_docstr: Test :meth:`orion.client.get_experiment`
class_docstr_tok: ["Test",":","meth",":","`","orion.client.get_experiment","`"]
docstr: Tests that an error is returned when the experiment doesn't exist
docstr_tok: ["Tests","that","an","error","is","returned","when","the","experiment","does","n't","exist"]
code: def test_experiment_do_not_exist(self):
      """Tests that an error is returned when the experiment doesn't exist"""
      with pytest.raises(NoConfigurationError) as exception:
          get_experiment("a")
      assert (
          "No experiment with given name 'a' and version '*' inside database, "
          "no view can be created." == str(exception.value)
      )
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 1 for calling the TestGetExperiment obj's underlying member method code with example usage: obj.test_experiment_do_not_exist() without return types