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

Method test_default

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

Source from the content-addressed store, hash-verified

11class TestUnitSystem:
12
13 def test_default(self):
14 units = ct.UnitSystem().units
15 checks = {
16 "activation-energy": "J / kmol",
17 "current": "A",
18 "energy": "J",
19 "length": "m",
20 "mass": "kg",
21 "pressure": "Pa",
22 "quantity": "kmol",
23 "temperature": "K",
24 "time": "s",
25 }
26 for dim, unit in units.items():
27 assert dim in checks
28 assert checks[dim] == unit
29
30 def test_cgs(self):
31 system = ct.UnitSystem({

Callers

nothing calls this directly

Calls 1

UnitSystemMethod · 0.45

Tested by

no test coverage detected