Esempio n. 1
0
 def test_cloning_absolute_url(self):
     """This is a test for creating a new Cloning object, and checking the url generated."""
     test_cloning = Cloning(construct=Construct.objects.get(pk=1),
                            cloning_type="PCR")
     test_cloning.save()
     self.assertEquals(test_cloning.get_absolute_url(),
                       "/cloning/cloning/1/")
Esempio n. 2
0
 def test_cloning_minimal(self):
     """This is a test for creating a new Cloning object, with only the minimum fields being entered."""
     test_cloning = Cloning(construct=Construct.objects.get(pk=1),
                            cloning_type="PCR")
     test_cloning.save()
     self.assertEquals(test_cloning.__unicode__(),
                       "Fixture Construct cloning")
Esempio n. 3
0
 def test_cloning_full(self):
     """This is a test for creating a full Cloning object, with all fields being entered, with the exception of gel."""
     test_cloning = Cloning(construct = Construct.objects.get(pk=1), 
     	cloning_type="PCR",
     	date_completed = '2012-01-01',
     	vector = Construct.objects.get(pk=1),
     	vector_CIP = True,
     	insert = 'Rab5 ORF',
     	primer_5prime = Primer.objects.get(pk=1),
     	primer_3prime = Primer.objects.get(pk=1),
     	restriction_enzyme_5prime = "EcoRI",
     	restriction_enzyme_3prime = "BamHI",
     	vector_restriction_enzyme_5prime = "EcoRI",
     	vector_restriction_enzyme_3prime = "BamHI",
     	destroyed_5prime = True,
     	destroyed_3prime = False,
     	ligation_temperature = 15,
     	ligation_time = '18:00',
     	notes = "Some Notes")
     test_cloning.save()
     test_cloning.researcher.add(Contact.objects.get(pk=1))
     test_cloning.sequencing.add(Sequencing.objects.get(pk=1))
     self.assertEquals(test_cloning.__unicode__(), "Fixture Construct cloning")            
Esempio n. 4
0
 def test_cloning_full(self):
     """This is a test for creating a full Cloning object, with all fields being entered, with the exception of gel."""
     test_cloning = Cloning(construct=Construct.objects.get(pk=1),
                            cloning_type="PCR",
                            date_completed='2012-01-01',
                            vector=Construct.objects.get(pk=1),
                            vector_CIP=True,
                            insert='Rab5 ORF',
                            primer_5prime=Primer.objects.get(pk=1),
                            primer_3prime=Primer.objects.get(pk=1),
                            restriction_enzyme_5prime="EcoRI",
                            restriction_enzyme_3prime="BamHI",
                            vector_restriction_enzyme_5prime="EcoRI",
                            vector_restriction_enzyme_3prime="BamHI",
                            destroyed_5prime=True,
                            destroyed_3prime=False,
                            ligation_temperature=15,
                            ligation_time='18:00',
                            notes="Some Notes")
     test_cloning.save()
     test_cloning.researcher.add(Contact.objects.get(pk=1))
     test_cloning.sequencing.add(Sequencing.objects.get(pk=1))
     self.assertEquals(test_cloning.__unicode__(),
                       "Fixture Construct cloning")
Esempio n. 5
0
 def test_cloning_absolute_url(self):
     """This is a test for creating a new Cloning object, and checking the url generated."""
     test_cloning = Cloning(construct = Construct.objects.get(pk=1), 
     	cloning_type="PCR")
     test_cloning.save()
     self.assertEquals(test_cloning.get_absolute_url(), "/cloning/cloning/1/")
Esempio n. 6
0
 def test_cloning_minimal(self):
     """This is a test for creating a new Cloning object, with only the minimum fields being entered."""
     test_cloning = Cloning(construct = Construct.objects.get(pk=1), 
     	cloning_type="PCR")
     test_cloning.save()
     self.assertEquals(test_cloning.__unicode__(), "Fixture Construct cloning")