Exemplo n.º 1
0
 def test_normalized_gDNA_composition_attributes(self):
     obs = NormalizedGDNAComposition(1)
     self.assertEqual(obs.container, Well(3077))
     self.assertEqual(obs.total_volume, 3500)
     self.assertIsNone(obs.notes)
     self.assertEqual(obs.compressed_gdna_composition,
                      CompressedGDNAComposition(1))
     self.assertEqual(obs.dna_volume, 415)
     self.assertEqual(obs.water_volume, 3085)
     self.assertEqual(obs.composition_id, 3085)
     self.assertEqual(obs.study, Study(1))
Exemplo n.º 2
0
 def test_composition_factory(self):
     self.assertEqual(Composition.factory(3073), ReagentComposition(1))
     self.assertEqual(Composition.factory(1537), PrimerComposition(1))
     self.assertEqual(Composition.factory(1), PrimerSetComposition(1))
     self.assertEqual(Composition.factory(3081), SampleComposition(1))
     self.assertEqual(Composition.factory(3082), GDNAComposition(1))
     self.assertEqual(Composition.factory(3083),
                      LibraryPrep16SComposition(1))
     self.assertEqual(Composition.factory(3084),
                      CompressedGDNAComposition(1))
     self.assertEqual(Composition.factory(3085),
                      NormalizedGDNAComposition(1))
     self.assertEqual(Composition.factory(3086),
                      LibraryPrepShotgunComposition(1))
     self.assertEqual(Composition.factory(3078), PoolComposition(1))
Exemplo n.º 3
0
 def test_compressed_gDNA_composition_attributes(self):
     obs = CompressedGDNAComposition(1)
     self.assertEqual(obs.container, Well(3076))
     self.assertEqual(obs.total_volume, 10)
     self.assertIsNone(obs.notes)
     self.assertEqual(obs.gdna_composition, GDNAComposition(1))