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

Method test_unconvertible

test/python/test_utils.py:260–261  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 self.check_conversion({"a": 1, "b": 2., "c": {"d": "eggs"}}, "AnyMap")
259
260 def test_unconvertible(self):
261 self.check_raises(object(), ct.CanteraError, "Unable to convert")
262
263 def test_unconvertible2(self):
264 self.check_raises([3+4j, 1-2j], ct.CanteraError, "Unable to convert")

Callers

nothing calls this directly

Calls 1

check_raisesMethod · 0.95

Tested by

no test coverage detected