class_docstr: Test Trial object and class.
docstr: Other than `Trial.Result.allowed_types` are not allowed in `Trial.Result.type`.
  
  Same for `Trial.Param`.
docstr_tok: ["Other","than","`","Trial.Result.allowed_types","`","are","not","allowed","in","`","Trial.Result.type","`",".","Same","for","`","Trial.Param","`","."]
code: def test_value_not_allowed_type(self):
      """Other than `Trial.Result.allowed_types` are not allowed in `Trial.Result.type`.
  
      Same for `Trial.Param`.
      """
      with pytest.raises(ValueError):
          v = Trial.Result(name="asfda", type="hoho")
      v = Trial.Result()
      with pytest.raises(ValueError):
          v.type = "asfda"
  
      with pytest.raises(ValueError):
          v = Trial.Param(name="asfda", type="hoho")
      v = Trial.Param()
      with pytest.raises(ValueError):
          v.type = "asfda"
  
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 10 for calling the TestTrial obj's underlying member method code with example usage: obj.test_value_not_allowed_type() without return types