def testIsVerticalSequenceMultipleRows(self): dna = [ "A-----", "A-----", "A----T", "A----T", "-----T", "-----T"] obj = SimianAnalyzer() obj._SimianAnalyzer__simian_sequence_found = 1 self.assertTrue(obj._SimianAnalyzer__isVerticalSequence(dna))
def testIsVerticalSequenceMultipleSplitted(self): dna = [ "--------T", "--------T", "--------T", "--------T", "---------", "--------A", "--------A", "--------A", "--------A"] obj = SimianAnalyzer() obj._SimianAnalyzer__simian_sequence_found = 0 self.assertTrue(obj._SimianAnalyzer__isVerticalSequence(dna))
def testIsVerticalSequenceSkip(self): dna = [ "---------", "---------", "--------T", "--------T", "--------T", "--------T", "--------T", "--------T", "--------T"] obj = SimianAnalyzer() obj._SimianAnalyzer__simian_sequence_found = 0 self.assertFalse(obj._SimianAnalyzer__isVerticalSequence(dna))