class_docstr: Tests for the algo Hyperband.
class_docstr_tok: ["Tests","for","the","algo","Hyperband","."]
docstr: Check that a point cannot registered if passed in order diff than fidelity.
docstr_tok: ["Check","that","a","point","can","not","registered","if","passed","in","order","diff","than","fidelity","."]
code: def test_register_corrupted_db(
      self, caplog: LogCaptureFixture, space: Space
  ):
      """Check that a point cannot registered if passed in order diff than fidelity."""
      hyperband = Hyperband(space)
  
      value = 50
      fidelity = 3
      trial = create_trial_for_hb((fidelity, value))
  
      force_observe(hyperband, trial)
      assert "Trial registered to wrong bracket" not in caplog.text
  
      fidelity = 1
      trial = create_trial_for_hb((fidelity, value))
  
      caplog.clear()
      force_observe(hyperband, trial)
      assert "Trial registered to wrong bracket" in caplog.text
  
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 6 for calling the TestHyperband obj's underlying member method code with example usage: obj.test_register_corrupted_db(caplog, space) without return types