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

Method check_raises

test/python/test_utils.py:176–178  ·  view source on GitHub ↗
(self, value, ee, regex)

Source from the content-addressed store, hash-verified

174 assert held_type == check_type
175
176 def check_raises(self, value, ee, regex):
177 with pytest.raises(ee, match=regex):
178 _py_to_any_to_py(value)
179
180 def test_none(self):
181 self.check_conversion(None, "void")

Callers 2

test_unconvertibleMethod · 0.95
test_unconvertible2Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected