class_docstr: Tests for the `ASHABracket` class.
class_docstr_tok: ["Tests","for","the","`","ASHABracket","`","class","."]
docstr: Check that a point is correctly registered inside a bracket.
code: def test_register(self, asha, bracket: ASHABracket):
      """Check that a point is correctly registered inside a bracket."""
      assert bracket.owner is asha
      trial = create_trial_for_hb((1, 0.0), 0.0)
      trial_id = asha.get_id(trial, ignore_fidelity=True)
  
      bracket.register(trial)
  
      assert len(bracket.rungs[0])
      assert trial_id in bracket.rungs[0]["results"]
      assert trial.objective is not None
      assert (
          bracket.rungs[0]["results"][trial_id][0]
          == trial.objective.value
      )
      assert (
          bracket.rungs[0]["results"][trial_id][1].to_dict()
          == trial.to_dict()
      )
  
imports: from __future__ import annotations
  import hashlib
  import logging
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import compare_registered_trial, create_rung_from_points, create_trial_for_hb, force_observe
  from orion.algo.asha import ASHA, ASHABracket, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Integer, Real, Space
  from orion.core.worker.primary_algo import SpaceTransform
  from orion.testing.algo import BaseAlgoTests, TestPhase
  from orion.testing.trial import create_trial
label_desc: Use image node_id 2 for calling the TestASHABracket obj's underlying member method code with example usage: obj.test_register(asha, bracket) without return types