97
97
test_one('aBccDe', 'abccde', [(0,0), (5,5)])
99
99
def test_matching_blocks(self):
101
101
# difflib always adds a signature of the total
102
102
# length, with no matching entries at the end
103
103
s = SequenceMatcher(None, a, b)
104
104
blocks = s.get_matching_blocks()
106
self.assertEquals(x, (len(a), len(b), 0))
105
self.assertEquals((len(a), len(b), 0), blocks[-1])
109
108
# Some basic matching tests