Ejemplo n.º 1
0
 def testIsVerticalSequenceMultipleRows(self):
     dna = [
         "A-----",
         "A-----",
         "A----T",
         "A----T",
         "-----T",
         "-----T"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 1
     self.assertTrue(obj._SimianAnalyzer__isVerticalSequence(dna))
Ejemplo n.º 2
0
 def testIsVerticalSequenceMultipleSplitted(self):
     dna = [
         "--------T",
         "--------T",
         "--------T",
         "--------T",
         "---------",
         "--------A",
         "--------A",
         "--------A",
         "--------A"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertTrue(obj._SimianAnalyzer__isVerticalSequence(dna))
Ejemplo n.º 3
0
 def testIsVerticalSequenceSkip(self):
     dna = [
         "---------",
         "---------",
         "--------T",
         "--------T",
         "--------T",
         "--------T",
         "--------T",
         "--------T",
         "--------T"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertFalse(obj._SimianAnalyzer__isVerticalSequence(dna))