File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -223,12 +223,14 @@ def test_get_energy(self):
223
223
assert test4 , "_get_energy: gets error. "
224
224
225
225
def test_get_reaction (self ):
226
- assert str (self .irs [0 ]._get_reaction (0.5 )) == "0.5 Mn + 0.5 O2 -> 0.5 MnO2" , (
227
- "_get_reaction: reaction not involving chempots species gets error!"
228
- )
229
- assert str (self .irs [3 ]._get_reaction (0.666666 )) == "0.5 Li2O + 0.5 Mn -> Li + 0.25 MnO2 + 0.25 Mn" , (
230
- "_get_reaction: reaction involving chempots species gets error!"
231
- )
226
+ rxnstr = str (self .irs [0 ]._get_reaction (0.5 ))
227
+ assert "0.5 Mn" in rxnstr
228
+ assert "0.5 O2" in rxnstr
229
+ assert "0.5 MnO2" in rxnstr
230
+ rxnstr = str (self .irs [3 ]._get_reaction (0.666666 ))
231
+ assert "0.5 Li2O" in rxnstr
232
+ assert "0.5 Mn" in rxnstr
233
+ assert "0.25 MnO2" in rxnstr
232
234
233
235
def test_get_get_elmt_amt_in_rxt (self ):
234
236
rxt1 = Reaction (
You can’t perform that action at this time.
0 commit comments