class_docstr: Tests for the `HyperbandBracket` class.
class_docstr_tok: ["Tests","for","the","`","HyperbandBracket","`","class","."]
docstr: Check that a non-valid point is not registered.
docstr_tok: ["Check","that","a","non-valid","point","is","not","registered","."]
code: def test_bad_register(
      self, hyperband: Hyperband, bracket: HyperbandBracket
  ):
      """Check that a non-valid point is not registered."""
      assert bracket.owner is hyperband
  
      with pytest.raises(IndexError) as ex:
          bracket.register(create_trial_for_hb((55, 0.0), 0.0))
  
      assert "Bad fidelity level 55" in str(ex.value)
  
imports: from __future__ import annotations
  import copy
  import logging
  import typing
  from typing import Any, ClassVar, Sequence
  import numpy
  import pytest
  from orion.algo.hyperband import BudgetTuple, Hyperband, HyperbandBracket, RungDict, compute_budgets
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.utils.flatten import flatten
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import compare_trials, create_trial
label_desc: Use image node_id 3 for calling the TestHyperbandBracket obj's underlying member method code with example usage: obj.test_bad_register(hyperband, bracket) without return types