예제 #1
0
 def testIsHorizontalSequenceMultipleRows(self):
     dna = [
         "--AAAA",
         "------",
         "------",
         "------",
         "------",
         "--TTTT"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 1
     self.assertTrue(obj._SimianAnalyzer__isHorizontalSequence(dna))
예제 #2
0
 def testIsHorizontalSequenceMultipleSplitted(self):
     dna = [
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "TTTT-AAAA"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertTrue(obj._SimianAnalyzer__isHorizontalSequence(dna))
예제 #3
0
 def testIsHorizontalSequenceSkip(self):
     dna = [
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "---------",
         "--TTTTTTT"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertFalse(obj._SimianAnalyzer__isHorizontalSequence(dna))