Exemplo n.º 1
0
 def testNoClip(self):
     """
     If no hard clipping is indicated, the function must return the
     original sequence.
     """
     self.assertEqual(('CGT', '123', False),
                      _hardClip('CGT', '123', ((CMATCH, 3),)))
Exemplo n.º 2
0
 def testClipRightAlreadyDone(self):
     """
     If hard clipping on the right is indicated, and has already been done,
     the function must return the expected sequence.
     """
     self.assertEqual(
         ('CA', '12', False),
         _hardClip('CA', '12', ((CMATCH, 2), (CHARD_CLIP, 4),)))
Exemplo n.º 3
0
 def testClipRight(self):
     """
     If hard clipping on the right is indicated, and has not been done,
     the function must return the expected sequence.
     """
     self.assertEqual(
         ('CA', '12', True),
         _hardClip('CAACGT', '123456', ((CMATCH, 2), (CHARD_CLIP, 4),)))