class_docstr: Tests the server's response to benchmarks/:name
class_docstr_tok: ["Tests","the","server","'s","response","to","benchmarks\/",":","name"]
code: def test_benchmark_bad_assessment(self, client_with_benchmark):
      response = client_with_benchmark.simulate_get(
          "/benchmarks/another_benchmark?assessment=idontexist"
      )
      assert response.status == "404 Not Found"
      assert response.json == {
          "title": "Benchmark study not found",
          "description": (
              "Invalid assessment name: idontexist. "
              "It should be one of ['AverageRank', 'AverageResult']"
          ),
      }
  
imports: import json
  import os
  import pytest
  from falcon import testing
  from orion.benchmark.assessment import AverageRank, AverageResult
  from orion.benchmark.benchmark_client import get_or_create_benchmark
  from orion.benchmark.task import Branin, CarromTable, EggHolder
  from orion.serving.webapi import WebApi
  from orion.storage.base import setup_storage
label_desc: Use image node_id 6 for calling the TestItem obj's underlying member method code with example usage: obj.test_benchmark_bad_assessment(client_with_benchmark) without return types