class_docstr: Test suite for algorithm AxOptimizer
class_docstr_tok: ["Test","suite","for","algorithm","AxOptimizer"]
docstr: Test that Ax configuration is valid
docstr_tok: ["Test","that","Ax","configuration","is","valid"]
code: def test_configuration_fail(self):
      """Test that Ax configuration is valid"""
      with pytest.raises(AssertionError) as exc_info:
          self.create_algo(
              config={**self.config, "constraints": ["constraint = 3"]},
          )
      assert exc_info.value
      with pytest.raises(AssertionError) as exc_info:
          self.create_algo(
              config={
                  **self.config,
                  "constraints": ["constraint < 10"],
              },
          )
      assert exc_info.value
  
imports: import statistics
  from typing import ClassVar, List
  import pytest
  from orion.algo.axoptimizer import import_optional
  from orion.benchmark.task.base import BenchmarkTask
  from orion.core.utils import backward
  from orion.testing.algo import BaseAlgoTests, TestPhase, first_phase_only
  import numpy
  from botorch.test_functions.multi_objective import BraninCurrin
  from torch import Tensor
label_desc: Use image node_id 1 for calling the TestAxOptimizer obj's underlying member method code with example usage: obj.test_configuration_fail() without return types