class_docstr: Tests for the algo Evolution.
class_docstr_tok: ["Tests","for","the","algo","Evolution","."]
docstr: Check that a point is registered inside the bracket.
code: def test_register(
      self,
      evolution: EvolutionES,
      bracket: BracketEVES,
      rung_0: RungDict,
      rung_1: RungDict,
  ):
      """Check that a point is registered inside the bracket."""
      evolution.brackets = [bracket]
      bracket.owner = evolution
      bracket.owner = evolution
      bracket.rungs = [rung_0, rung_1]
      trial = create_trial_for_hb((1, 0.0), objective=0.0)
      trial_id = evolution.get_id(trial, ignore_fidelity=True)
  
      evolution.observe([trial])
  
      assert len(bracket.rungs[0])
      assert trial_id in bracket.rungs[0]["results"]
      assert bracket.rungs[0]["results"][trial_id][0] == 0.0
      assert (
          bracket.rungs[0]["results"][trial_id][1].params
          == trial.params
      )
  
imports: from __future__ import annotations
  import copy
  from typing import ClassVar
  import numpy
  import pytest
  from test_hyperband import create_rung_from_points, create_trial_for_hb
  from orion.algo.evolution_es import BracketEVES, BudgetTuple, EvolutionES, compute_budgets
  from orion.algo.hyperband import RungDict
  from orion.algo.space import Fidelity, Real, Space
  from orion.core.utils import backward
  from orion.core.worker.trial import Trial
  from orion.testing.algo import BaseAlgoTests, TestPhase, _are_equal
  from orion.testing.trial import create_trial
label_desc: Use image node_id 1 for calling the TestEvolutionES obj's underlying member method code with example usage: obj.test_register(evolution, bracket, rung_0, rung_1) without return types