def test_create_and_convert_model(self): reader = sbml.SBMLReader(self.doc) model = reader.create_model() sbml.convert_sbml_model(model) self.assertEqual({entry.id for entry in model.compounds}, {'Glucose', 'Glucose_6_P', 'H2O', 'Phosphate'}) self.assertEqual({entry.id for entry in model.reactions}, {'G6Pase', 'Biomass'}) self.assertEqual({entry.id for entry in model.compartments}, {'cell'}) self.assertEqual(set(model.model), {'Biomass', 'G6Pase'})
def test_create_and_convert_model(self): reader = sbml.SBMLReader(self.doc) model = reader.create_model() sbml.convert_sbml_model(model) self.assertEqual( {entry.id for entry in model.compounds}, {'Glucose(c)', 'Glucose_6-P(c)', 'H2O(c)', 'Phosphate(c)'}) self.assertEqual({entry.id for entry in model.reactions}, {'G6Pase', 'Biomass'}) self.assertEqual({entry.id for entry in model.compartments}, {'c'}) self.assertEqual(model.limits['Biomass'], ('Biomass', 0, 1000)) self.assertEqual(model.biomass_reaction, 'Biomass') self.assertEqual(set(model.model), {'Biomass', 'G6Pase'})
def test_create_and_convert_model(self): reader = sbml.SBMLReader(self.doc) model = reader.create_model() sbml.convert_sbml_model(model) self.assertEqual( {entry.id for entry in model.compounds}, {'Glucose(c)', 'Glucose_6-P(c)', 'H2O(c)', 'Phosphate(c)'}) self.assertEqual( {entry.id for entry in model.reactions}, {'G6Pase', 'Biomass'}) self.assertEqual( {entry.id for entry in model.compartments}, {'c'}) self.assertEqual(set(model.model), {'Biomass', 'G6Pase'})