class_docstr: Test the server's response to experiments/status/:name
class_docstr_tok: ["Test","the","server","'s","response","to","experiments\/status\/",":","name"]
docstr: Tests that the experiment stats returned is following the specification
docstr_tok: ["Tests","that","the","experiment","stats","returned","is","following","the","specification"]
code: def test_experiment_specification(self, client, ephemeral_storage):
      """Tests that the experiment stats returned is following the specification"""
  
      storage = ephemeral_storage.storage
  
      _add_experiment(storage, name="a", version=1, _id=1)
      _add_trial(
          storage, experiment=1, id_override="ae8", status="completed"
      )
  
      response = client.simulate_get("/experiments/status/a")
      assert response.status == "200 OK"
      assert response.json == {
          "trials_completed": 1,
          "best_trials_id": "7bbfdb8c684aa5f4be324a09d7da94af",
          "best_evaluation": 0.05,
          "start_time": "0001-01-01 00:00:00",
          "finish_time": "0001-01-02 00:00:00",
          "max_trials": 10,
          "nb_trials": 1,
          "progress": 0.1,
          "trial_status_count": {"completed": 1},
          "elapsed_time": "23:59:50",
          "sum_of_trials_time": "23:59:50",
          "eta": "8 days, 23:58:30",
          "eta_milliseconds": 777510000.0,
      }
  
imports: import copy
  import datetime
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 2 for calling the TestStats obj's underlying member method code with example usage: obj.test_experiment_specification(client, ephemeral_storage) without return types