class_docstr: Test suite for algorithm MOFA
class_docstr_tok: ["Test","suite","for","algorithm","MOFA"]
docstr: Tests a number of levels which is not prime
docstr_tok: ["Tests","a","number","of","levels","which","is","not","prime"]
code: def test_cfg_nlevels_invalid(self):
      """Tests a number of levels which is not prime"""
      with pytest.raises(ValueError):
          self.create_algo(config={"n_levels": 4})
  
file_path: orion/tests/unittests/algo/mofa/test_mofa.py
imports: from __future__ import annotations
  from typing import ClassVar
  import pytest
  import scipy
  from packaging import version
  from orion.algo.mofa.mofa import MOFA
  from orion.algo.space import Space
  from orion.testing.algo import BaseAlgoTests, TestPhase
label_desc: Use image node_id 3 for calling the TestMOFA obj's underlying member method code with example usage: obj.test_cfg_nlevels_invalid() without return types