Esempio n. 1
0
 def test_amino_acid_can_be_made_from_multiple_recombinations(self):
     aa = AminoAcidFactory()
     r = RecombinationFactory()
     r.amino_acid = aa
     r.save()
     r2 = RecombinationFactory()
     r2.amino_acid = aa
     r2.save()
     self.assertEqual(r, aa.recombination_set.all()[0])
     self.assertEqual(r2, aa.recombination_set.all()[1])
Esempio n. 2
0
 def test_recombinations_have_an_optional_amino_acid(self):
     aa = AminoAcidFactory()
     r = RecombinationFactory()
     r.amino_acid = aa
     r.save()
     self.assertEqual(aa, r.amino_acid)