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