class_docstr: Tests for the `Registry` class. The `Registry` should basically act as a `Container[Trial]`,
  and so the tests should be roughly the same as if they were testing the built-in `dict` class.
class_docstr_tok: ["Tests","for","the","`","Registry","`","class",".","The","`","Registry","`","should","basically","act","as","a","`","Container","[","Trial","]","`",",","and","so","the","tests","should","be","roughly","the","same","as","if","they","were","testing","the","built-in","`","dict","`","class","."]
docstr: Test that trials passed to __init__ are stored in the registry.
docstr_tok: ["Test","that","trials","passed","to","__init__","are","stored","in","the","registry","."]
code: def test_init_registry_with_trials(self, space: Space):
      """Test that trials passed to __init__ are stored in the registry."""
      trials = space.sample(3)
      registry = Registry(trials)
      assert all(trial in registry for trial in trials)
      assert len(registry) == 3
  
imports: import copy
  import pytest
  from orion.algo.base.registry import Registry, RegistryMapping
  from orion.algo.space import Space
  from orion.core.io.space_builder import SpaceBuilder
  from orion.core.worker.transformer import TransformedSpace, build_required_space
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 6 for calling the TestRegistry obj's underlying member method code with example usage: obj.test_init_registry_with_trials(space) without return types