class_docstr: Tests for the `ASHABracket` class.
class_docstr_tok: ["Tests","for","the","`","ASHABracket","`","class","."]
docstr: Test the get_candidate return None if there is not enough points ready.
code: def test_no_promotion_if_not_enough_points(
      self, asha: ASHA, bracket: ASHABracket
  ):
      """Test the get_candidate return None if there is not enough points ready."""
      assert bracket.owner is asha
      bracket.rungs[0] = RungDict(
          n_trials=1,
          resources=1,
          results={
              hashlib.md5(str([0.0]).encode("utf-8")).hexdigest(): (
                  0.0,
                  (1, 0.0),
              )
          },
      )
  
      assert bracket.get_candidates(0) == []
  
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 7 for calling the TestASHABracket obj's underlying member method code with example usage: obj.test_no_promotion_if_not_enough_points(asha, bracket) without return types