Esempio n. 1
0
 def test_mutagenesis_minimal(self):
     """This is a test for creating a new Mutagenesis object, with only the minimum fields being entered."""
     test_mutagenesis = Mutagenesis(construct = Construct.objects.get(pk=1), 
     	template = Construct.objects.get(pk=1),
     	mutation= "Ser85Ala",
     	method = "Stratagene Quickchange")
     test_mutagenesis.save()
     self.assertEquals(test_mutagenesis.__unicode__(), "Fixture Construct mutagenesis")
Esempio n. 2
0
 def test_mutagenesis_absolute_url(self):
     """This is a test for creating a new Cloning object, and checking the url generated."""
     test_mutagenesis = Mutagenesis(construct = Construct.objects.get(pk=1), 
     	template = Construct.objects.get(pk=1),
     	mutation= "Ser85Ala",
     	method = "Stratagene Quickchange")
     test_mutagenesis.save()
     self.assertEquals(test_mutagenesis.get_absolute_url(), "/cloning/mutagenesis/1/")
Esempio n. 3
0
 def test_mutagenesis_minimal(self):
     """This is a test for creating a new Mutagenesis object, with only the minimum fields being entered."""
     test_mutagenesis = Mutagenesis(construct=Construct.objects.get(pk=1),
                                    template=Construct.objects.get(pk=1),
                                    mutation="Ser85Ala",
                                    method="Stratagene Quickchange")
     test_mutagenesis.save()
     self.assertEquals(test_mutagenesis.__unicode__(),
                       "Fixture Construct mutagenesis")
Esempio n. 4
0
 def test_mutagenesis_absolute_url(self):
     """This is a test for creating a new Cloning object, and checking the url generated."""
     test_mutagenesis = Mutagenesis(construct=Construct.objects.get(pk=1),
                                    template=Construct.objects.get(pk=1),
                                    mutation="Ser85Ala",
                                    method="Stratagene Quickchange")
     test_mutagenesis.save()
     self.assertEquals(test_mutagenesis.get_absolute_url(),
                       "/cloning/mutagenesis/1/")
Esempio n. 5
0
 def test_mutagenesis_full(self):
     """This is a test for creating a full Mutagenesis object, with all fields being entered, with the exception of gel."""
     test_mutagenesis = Mutagenesis(construct = Construct.objects.get(pk=1), 
     	template = Construct.objects.get(pk=1),
     	mutation= "Ser85Ala",
     	method = "Stratagene Quickchange",
     	date_completed = '2012-01-01',
     	protocol = Protocol.objects.get(pk=1),
     	sense_primer = Primer.objects.get(pk=1),
     	antisense_primer = Primer.objects.get(pk=1),
     	colonies = 123,
     	notes = "Some notes.")
     test_mutagenesis.save()
     test_mutagenesis.sequencing.add(Sequencing.objects.get(pk=1))
     test_mutagenesis.researcher.add(Contact.objects.get(pk=1))
     self.assertEquals(test_mutagenesis.__unicode__(), "Fixture Construct mutagenesis")            
Esempio n. 6
0
 def test_mutagenesis_full(self):
     """This is a test for creating a full Mutagenesis object, with all fields being entered, with the exception of gel."""
     test_mutagenesis = Mutagenesis(
         construct=Construct.objects.get(pk=1),
         template=Construct.objects.get(pk=1),
         mutation="Ser85Ala",
         method="Stratagene Quickchange",
         date_completed='2012-01-01',
         protocol=Protocol.objects.get(pk=1),
         sense_primer=Primer.objects.get(pk=1),
         antisense_primer=Primer.objects.get(pk=1),
         colonies=123,
         notes="Some notes.")
     test_mutagenesis.save()
     test_mutagenesis.sequencing.add(Sequencing.objects.get(pk=1))
     test_mutagenesis.researcher.add(Contact.objects.get(pk=1))
     self.assertEquals(test_mutagenesis.__unicode__(),
                       "Fixture Construct mutagenesis")