Пример #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)
Пример #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(3085),
                      NormalizedGDNAComposition(1))
     self.assertEqual(Composition.factory(3086),
                      LibraryPrepShotgunComposition(1))
     self.assertEqual(Composition.factory(3078), PoolComposition(1))