class_docstr: Tests trials/:experiment_name/:trial_id
docstr: Tests that we cannot set an invalid trial status
docstr_tok: ["Tests","that","we","can","not","set","an","invalid","trial","status"]
code: def test_set_invalid_trial_status(self, client, ephemeral_storage):
      """Tests that we cannot set an invalid trial status"""
      storage = ephemeral_storage.storage
  
      add_experiment(storage, name="a", version=1, _id=1)
      add_trial(
          storage,
          experiment=1,
          id_override="00",
          status="completed",
          value=0,
      )
      add_trial(
          storage,
          experiment=1,
          id_override="01",
          status="completed",
          value=1,
      )
  
      # Edit status with invalid value and verify we get expected error
      response = client.simulate_get(
          "/trials/a/79a873a1146cbdcc385f53e7c14f41aa/set-status/unknown"
      )
      assert response.status == "400 Bad Request"
      assert response.json == {
          "title": "Invalid parameter",
          "description": 'The "status" parameter is invalid. Invalid status',
      }
  
imports: import copy
  import datetime
  import random
  import falcon
  from orion.core.io import experiment_builder
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 5 for calling the TestTrialItem obj's underlying member method code with example usage: obj.test_set_invalid_trial_status(client, ephemeral_storage) without return types