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

Method test_activation_energy

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

Source from the content-addressed store, hash-verified

49 assert checks[dim] == unit
50
51 def test_activation_energy(self):
52 system = ct.UnitSystem({"activation-energy": "eV"})
53 units = system.units
54 assert units["activation-energy"] == "eV"
55
56 system = ct.UnitSystem({"activation-energy": "K"})
57 units = system.units
58 assert units["activation-energy"] == "K"
59
60 def test_raises(self):
61 with pytest.raises(ct.CanteraError, match="non-unity conversion factor"):

Callers

nothing calls this directly

Calls 1

UnitSystemMethod · 0.45

Tested by

no test coverage detected