Example #1
0
 def test_mass_inconsistent_is_consistent(self):
     exchange = {'rxn_1', 'rxn_6'}
     self.database.set_reaction('rxn_7', parse_reaction('|D| => (2) |C|'))
     self.model.add_reaction('rxn_7')
     self.assertFalse(
         massconsistency.is_consistent(self.model, self.solver, exchange,
                                       set()))
Example #2
0
 def test_is_consistent_with_zeromass(self):
     consistent = massconsistency.is_consistent(self.model,
                                                solver=self.solver,
                                                zeromass={Compound('Z')})
     self.assertTrue(consistent)
Example #3
0
 def test_mass_consistent_is_consistent(self):
     exchange = {'rxn_1', 'rxn_6'}
     self.assertTrue(
         massconsistency.is_consistent(self.model, self.solver, exchange,
                                       set()))
Example #4
0
 def test_is_consistent_with_zeromass(self):
     consistent = massconsistency.is_consistent(
         self.model, solver=self.solver, zeromass={Compound('Z')})
     self.assertTrue(consistent)
Example #5
0
 def test_mass_inconsistent_is_consistent(self):
     exchange = { 'rxn_1', 'rxn_6' }
     self.database.set_reaction('rxn_7', parse_reaction('|D| => (2) |C|'))
     self.model.add_reaction('rxn_7')
     self.assertFalse(massconsistency.is_consistent(
         self.model, self.solver, exchange, set()))
Example #6
0
 def test_mass_consistent_is_consistent(self):
     exchange = { 'rxn_1', 'rxn_6' }
     self.assertTrue(massconsistency.is_consistent(
         self.model, self.solver, exchange, set()))