class_docstr: Test Trial object and class.
docstr: Initialize with a dictionary with complete specification.
docstr_tok: ["Initialize","with","a","dictionary","with","complete","specification","."]
code: def test_init_full(self, trial_config):
      """Initialize with a dictionary with complete specification."""
      t = Trial(**trial_config)
      assert t.experiment == trial_config["experiment"]
      assert t.status == trial_config["status"]
      assert t.worker == trial_config["worker"]
      assert t.submit_time == trial_config["submit_time"]
      assert t.start_time == trial_config["start_time"]
      assert t.end_time == trial_config["end_time"]
      assert (
          list(map(lambda x: x.to_dict(), t.results))
          == trial_config["results"]
      )
      assert t.results[0].name == trial_config["results"][0]["name"]
      assert t.results[0].type == trial_config["results"][0]["type"]
      assert t.results[0].value == trial_config["results"][0]["value"]
      assert (
          list(map(lambda x: x.to_dict(), t._params))
          == trial_config["params"]
      )
      assert t.exp_working_dir is None
  
imports: import copy
  import datetime
  import os
  import warnings
  import bson
  import numpy
  import pytest
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 2 for calling the TestTrial obj's underlying member method code with example usage: obj.test_init_full(trial_config) without return types