MCPcopy Create free account
hub / github.com/Cantera/cantera / check_conversion

Method check_conversion

test/python/test_utils.py:161–165  ·  view source on GitHub ↗
(self, value, check_type=None)

Source from the content-addressed store, hash-verified

159class TestPyToAnyValue:
160
161 def check_conversion(self, value, check_type=None):
162 out, held_type = _py_to_any_to_py(value)
163 assert out == value
164 if check_type is not None:
165 assert held_type == check_type
166
167 def check_inexact_conversion(self, value, check_type=None):
168 out, held_type = _py_to_any_to_py(value)

Callers 15

test_noneMethod · 0.95
test_empty_listMethod · 0.95
test_empty_dictMethod · 0.95
test_scalar_stringMethod · 0.95
test_scalar_intMethod · 0.95
test_scalar_floatMethod · 0.95
test_scalar_boolMethod · 0.95
test_list_stringMethod · 0.95
test_list_intMethod · 0.95
test_list_floatMethod · 0.95
test_list_boolMethod · 0.95
test_list_variousMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected