Exemplo n.º 1
0
 def test_library_prep_shotgun_composition_attributes(self):
     obs = LibraryPrepShotgunComposition(1)
     self.assertEqual(obs.container, Well(3078))
     self._baseAssertEqual(obs.total_volume, 4000)
     self.assertIsNone(obs.notes)
     self.assertEqual(obs.normalized_gdna_composition,
                      NormalizedGDNAComposition(1))
     self.assertEqual(obs.i5_composition, PrimerComposition(769))
     self.assertEqual(obs.i7_composition, PrimerComposition(770))
     self.assertEqual(obs.composition_id, 3086)
Exemplo n.º 2
0
 def test_primer_composition_attributes(self):
     obs = PrimerComposition(1)
     self.assertEqual(obs.container, Well(1537))
     self.assertEqual(obs.total_volume, 10)
     self.assertIsNone(obs.notes)
     self.assertEqual(obs.composition_id, 1537)
     self.assertEqual(obs.primer_set_composition, PrimerSetComposition(1))
Exemplo n.º 3
0
 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)
Exemplo n.º 4
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(3085),
                      NormalizedGDNAComposition(1))
     self.assertEqual(Composition.factory(3086),
                      LibraryPrepShotgunComposition(1))
     self.assertEqual(Composition.factory(3078), PoolComposition(1))
Exemplo n.º 5
0
 def test_primer_composition_attributes(self):
     obs = PrimerComposition(1)
     self.assertEqual(obs.container, Well(1537))
     self.assertEqual(obs.total_volume, 10)
     self.assertIsNone(obs.notes)
     # NB: the fact that the composition id is 1538 and the well id is 1537
     # is not a mistake.  There is a placeholder composition (for "Not
     # Applicable", supporting externally extracted DNA) added in
     # db_patch_manual.sql, before populate_test_db.sql is run to create the
     # records being tested here--but that composition is "stored" in a
     # placeholder TUBE rather than a placeholder WELL, so there is no
     # analogous extra well record.
     self.assertEqual(obs.composition_id, 1538)
     self.assertEqual(obs.primer_set_composition, PrimerSetComposition(1))
     self.assertIsNone(obs.study)