def test_library_prep_16S_composition_attributes(self): obs = LibraryPrep16SComposition(1) self.assertEqual(obs.container, Well(3075)) self.assertEqual(obs.total_volume, 10) self.assertIsNone(obs.notes) self.assertEqual(obs.gdna_composition, GDNAComposition(1)) self.assertEqual(obs.primer_composition, PrimerComposition(1)) self.assertEqual(obs.composition_id, 3083)
def test_gDNA_composition_attributes(self): obs = GDNAComposition(1) self.assertEqual(obs.sample_composition, SampleComposition(1)) self.assertEqual(obs.upstream_process, GDNAExtractionProcess(1)) self.assertEqual(obs.container, Well(3074)) self.assertEqual(obs.total_volume, 10) self.assertIsNone(obs.notes) self.assertEqual(obs.composition_id, 3082)
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.gdna_composition, GDNAComposition(2)) self.assertEqual(obs.dna_volume, 415) self.assertEqual(obs.water_volume, 3085) self.assertEqual(obs.composition_id, 3085)
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(3085), NormalizedGDNAComposition(1)) self.assertEqual(Composition.factory(3086), LibraryPrepShotgunComposition(1)) self.assertEqual(Composition.factory(3078), PoolComposition(1))
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))