def test_clone_cobrapy_reaction(self):
     for reaction in self.cobrapy_model.reactions:
         cloned_reaction = Reaction.clone(reaction)
         self.assertEqual(cloned_reaction.objective_coefficient, reaction.objective_coefficient)
         self.assertEqual(cloned_reaction.gene_reaction_rule, reaction.gene_reaction_rule)
         self.assertEqual(cloned_reaction.genes, reaction.genes)
         self.assertEqual(cloned_reaction.metabolites, reaction.metabolites)
         self.assertEqual(cloned_reaction.products, reaction.products)
         self.assertEqual(cloned_reaction.reactants, reaction.reactants)
Exemplo n.º 2
0
 def test_clone_cobrapy_reaction(self):
     for reaction in self.cobrapy_model.reactions:
         cloned_reaction = Reaction.clone(reaction)
         self.assertEqual(cloned_reaction.objective_coefficient,
                          reaction.objective_coefficient)
         self.assertEqual(cloned_reaction.gene_reaction_rule,
                          reaction.gene_reaction_rule)
         self.assertEqual(cloned_reaction.genes, reaction.genes)
         self.assertEqual(cloned_reaction.metabolites,
                          reaction.metabolites)
         self.assertEqual(cloned_reaction.products, reaction.products)
         self.assertEqual(cloned_reaction.reactants, reaction.reactants)
 def test_clone_cobrapy_reaction(self):
     from cobra.core import Reaction as CobrapyReaction
     reaction = CobrapyReaction('blug')
     self.assertEqual(Reaction.clone(reaction).id, 'blug')
Exemplo n.º 4
0
 def test_clone_cobrapy_reaction(self):
     from cobra.core import Reaction as CobrapyReaction
     reaction = CobrapyReaction('blug')
     self.assertEqual(Reaction.clone(reaction).id, 'blug')