class_docstr: Tests the server's response to experiments/:name
class_docstr_tok: ["Tests","the","server","'s","response","to","experiments\/",":","name"]
docstr: Tests that a 404 response is returned when the experiment
  doesn't exist in the database
docstr_tok: ["Tests","that","a","404","response","is","returned","when","the","experiment","does","n't","exist","in","the","database"]
code: def test_non_existent_experiment(self, client, ephemeral_storage):
      """
      Tests that a 404 response is returned when the experiment
      doesn't exist in the database
      """
      response = client.simulate_get("/experiments/a")
  
      assert response.status == "404 Not Found"
      assert response.json == {
          "title": "Experiment not found",
          "description": 'Experiment "a" does not exist',
      }
  
      storage = ephemeral_storage.storage
  
      _add_experiment(storage, name="a", version=1, _id=1)
      response = client.simulate_get("/experiments/b")
  
      assert response.status == "404 Not Found"
      assert response.json == {
          "title": "Experiment not found",
          "description": 'Experiment "b" does not exist',
      }
  
imports: import copy
  import datetime
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 1 for calling the TestItem obj's underlying member method code with example usage: obj.test_non_existent_experiment(client, ephemeral_storage) without return types