class_docstr: Test Trial object and class.
docstr: Check property `Trial.duration`.
docstr_tok: ["Check","property","`","Trial.duration","`","."]
code: def test_duration_property(
      self, trial_config_with_correct_start_time
  ):
      """Check property `Trial.duration`."""
      t = Trial(**trial_config_with_correct_start_time)
      assert t.duration == datetime.timedelta(seconds=3600)
  
      t = Trial()
      assert t.duration == datetime.timedelta()
  
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 38 for calling the TestTrial obj's underlying member method code with example usage: obj.test_duration_property(trial_config_with_correct_start_time) without return types