100
100
def chk_blocks(a, b, expected_blocks):
101
101
# difflib always adds a signature of the total
102
102
# length, with no matching entries at the end
104
104
blocks = s.get_matching_blocks()
105
105
self.assertEquals((len(a), len(b), 0), blocks[-1])
106
106
self.assertEquals(expected_blocks, blocks[:-1])