Esempio n. 1
0
 def testNonZeroWithTwoGapsNonContiguous(self):
     """
     Passing a non-zero start offset and a string with two gaps that are not
     contiguous should work.
     """
     self.assertEqual(7, alignmentEnd('TTA-C-CTA', 2, 3))
Esempio n. 2
0
 def testZeroWithTwoGaps(self):
     """
     Passing a zero start offset and a string with two gaps should work.
     """
     self.assertEqual(4, alignmentEnd('A--CCTA', 0, 2))
Esempio n. 3
0
 def testNonZeroNoGaps(self):
     """
     Passing a non-zero start offset and a string with no gaps should work.
     """
     self.assertEqual(3, alignmentEnd('ACCTA', 1, 2))
Esempio n. 4
0
 def testZeroWithOneGap(self):
     """
     Passing a zero start offset and a string with one gap should work.
     """
     self.assertEqual(3, alignmentEnd('A-CCTA', 0, 2))
Esempio n. 5
0
 def testEmptyString(self):
     """
     Looking for a zero length section of a zero length string starting
     at offset zero should get a result of zero.
     """
     self.assertEqual(0, alignmentEnd('', 0, 0))