class_docstr: Tests the server's response to experiments/:name
class_docstr_tok: ["Tests","the","server","'s","response","to","experiments\/",":","name"]
docstr: Tests that the latest experiment is returned when no version parameter exists
docstr_tok: ["Tests","that","the","latest","experiment","is","returned","when","no","version","parameter","exists"]
code: def test_default_is_latest_version(self, client, ephemeral_storage):
      """Tests that the latest experiment is returned when no version parameter exists"""
  
      storage = ephemeral_storage.storage
  
      _add_experiment(storage, name="a", version=1, _id=1)
      _add_experiment(storage, name="a", version=3, _id=2)
      _add_experiment(storage, name="a", version=2, _id=3)
  
      response = client.simulate_get("/experiments/a")
  
      assert response.status == "200 OK"
      assert response.json["version"] == 3
  
imports: import copy
  import datetime
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 3 for calling the TestItem obj's underlying member method code with example usage: obj.test_default_is_latest_version(client, ephemeral_storage) without return types