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))
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))