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

Method test_meta

test/python/test_thermo.py:2057–2061  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2055 assert states.reaction(10).equation == self.gas.reaction(10).equation
2056
2057 def test_meta(self):
2058 meta = {'foo': 'bar', 'spam': 'eggs'}
2059 states = ct.SolutionArray(self.gas, 3, meta=meta)
2060 assert states.meta['foo'] == 'bar'
2061 assert states.meta['spam'] == 'eggs'
2062
2063 def test_get_state(self):
2064 states = ct.SolutionArray(self.gas, 4)

Callers

nothing calls this directly

Calls 1

SolutionArrayMethod · 0.80

Tested by

no test coverage detected