Exemplo n.º 1
0
 def testEqualStringsLength1Concise(self):
     """
     If two equal strings of length 1 are passed and the concise argument
     is True, the correct CIGAR string must be returned.
     """
     self.assertEqual('1M', dna2cigar('A', 'A', concise=True))
Exemplo n.º 2
0
 def testEqualStringsLength1MismatchedCase(self):
     """
     If two strings of length 1 are passed and the're the same but for
     case, the CIGAR string must indicate that they do not match.
     """
     self.assertEqual('1X', dna2cigar('A', 'a'))
Exemplo n.º 3
0
 def testMixedEqualityStringsLength2ConciseAlt(self):
     """
     If two equal strings of length 2 are passed and the concise argument
     is True, the correct CIGAR string must be returned.
     """
     self.assertEqual('2M', dna2cigar('GA', 'TA', concise=True))
Exemplo n.º 4
0
 def testEqualStringsLength1(self):
     """
     If two equal strings of length 1 are passed, the correct CIGAR string
     must be returned.
     """
     self.assertEqual('1=', dna2cigar('A', 'A'))
Exemplo n.º 5
0
 def testMixedEqualityStringsLength2Alt(self):
     """
     If two strings of length 2 are passed and they match in just one
     place, the correct CIGAR string must be returned.
     """
     self.assertEqual('1X1=', dna2cigar('GA', 'TA'))