class_docstr: Test creation of experiment with `client.create_experiment()`
class_docstr_tok: ["Test","creation","of","experiment","with","`","client.create_experiment","(",")","`"]
docstr: Test creating a new experiment with all defaults
docstr_tok: ["Test","creating","a","new","experiment","with","all","defaults"]
code: def test_create_experiment_new_default(self):
      """Test creating a new experiment with all defaults"""
      name = "all_default"
      space = {"x": "uniform(0, 10)"}
      with OrionState() as cfg:
          experiment = create_experiment(
              name="all_default",
              space=space,
              storage=cfg.storage_config,
          )
  
          assert experiment.name == name
          assert experiment.space.configuration == space
  
          assert (
              experiment.max_trials
              == orion.core.config.experiment.max_trials
          )
          assert (
              experiment.max_broken
              == orion.core.config.experiment.max_broken
          )
          assert (
              experiment.working_dir
              == orion.core.config.experiment.working_dir
          )
          assert experiment.algorithm
          assert experiment.algorithm.configuration == {
              "random": {"seed": None}
          }
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 4 for calling the TestCreateExperiment obj's underlying member method code with example usage: obj.test_create_experiment_new_default() without return types