424
424
''.join(m_lines))
426
def test_allow_objects(self):
427
"""Objects other than strs may be used with Merge3 when
430
merge_groups and merge_regions work with non-str input. Methods that
431
return lines like merge_lines fail.
433
base = [(x,x) for x in 'abcde']
434
a = [(x,x) for x in 'abcdef']
435
b = [(x,x) for x in 'Zabcde']
436
m3 = Merge3(base, a, b, allow_objects=True)
441
list(m3.merge_regions()))
443
[('b', [('Z', 'Z')]),
444
('unchanged', [(x,x) for x in 'abcde']),
445
('a', [('f', 'f')])],
446
list(m3.merge_groups()))