Esempio n. 1
0
 def testIsDiagonalSequenceMultipleRows(self):
     dna = [
         "--A---",
         "---A--",
         "T---A-",
         "-T---A",
         "--T---",
         "---T--"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 1
     self.assertTrue(obj._SimianAnalyzer__isDiagonalSequence(dna))
Esempio n. 2
0
 def testIsDiagonalSequenceSkip(self):
     dna = [
         "---------",
         "---------",
         "--T------",
         "---T-----",
         "----T----",
         "-----T---",
         "------T--",
         "-------T-",
         "--------T"]
     obj = SimianAnalyzer()
     obj._SimianAnalyzer__simian_sequence_found = 0
     self.assertFalse(obj._SimianAnalyzer__isDiagonalSequence(dna))