Exemplo n.º 1
0
 def testIsInvertedDiagonalSequenceMultipleRows(self):
     dna = [
         "---A--",
         "--A---",
         "-A---T",
         "A---T-",
         "---T--",
         "--T---"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 1
     self.assertTrue(obj._SimianAnalyzer__isInvertedDiagonalSequence(dna))
Exemplo n.º 2
0
 def testIsInvertedDiagonalSequenceSkip(self):
     dna = [
         "---------",
         "---------",
         "------T--",
         "-----T---",
         "----T----",
         "---T-----",
         "--T------",
         "-T-------",
         "T--------"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertFalse(obj._SimianAnalyzer__isInvertedDiagonalSequence(dna))