class_docstr: Tests for `BracketEVES` class..
class_docstr_tok: ["Tests","for","`","BracketEVES","`","class",".."]
docstr: Test that correct team is promoted.
code: def test_get_teams(self, bracket: BracketEVES, rung_3: RungDict):
      """Test that correct team is promoted."""
      bracket.rungs[0] = rung_3
      rung, population_range, red_team, blue_team = bracket._get_teams(
          0
      )
      assert len(list(rung.values())) == 4
      assert bracket.search_space_without_fidelity == [1, 2]
      assert population_range == 4
      assert set(red_team).union(set(blue_team)) == {0, 1, 2, 3}
      assert set(red_team).intersection(set(blue_team)) == set()
  
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 TestBracketEVES obj's underlying member method code with example usage: obj.test_get_teams(bracket, rung_3) without return types