(self)
| 28 | assert checks[dim] == unit |
| 29 | |
| 30 | def test_cgs(self): |
| 31 | system = ct.UnitSystem({ |
| 32 | "length": "cm", "mass": "g", "time": "s", |
| 33 | "quantity": "mol", "pressure": "dyn / cm^2", "energy": "erg", |
| 34 | "activation-energy": "cal / mol"}) |
| 35 | units = system.units |
| 36 | checks = { |
| 37 | "activation-energy": "cal / mol", |
| 38 | "current": "A", |
| 39 | "energy": "erg", |
| 40 | "length": "cm", |
| 41 | "mass": "g", |
| 42 | "pressure": "dyn / cm^2", |
| 43 | "quantity": "mol", |
| 44 | "temperature": "K", |
| 45 | "time": "s", |
| 46 | } |
| 47 | for dim, unit in units.items(): |
| 48 | assert dim in checks |
| 49 | assert checks[dim] == unit |
| 50 | |
| 51 | def test_activation_energy(self): |
| 52 | system = ct.UnitSystem({"activation-energy": "eV"}) |
nothing calls this directly
no test coverage detected