368
368
('killed-a', 'b\n'),
369
369
('unchanged', 'g\n')],
372
def test_subtract_plans(self):
374
('unchanged', 'a\n'),
383
('unchanged', 'a\n'),
392
('unchanged', 'a\n'),
396
('unchanged', 'f\n'),
399
self.assertEqual(subtracted_plan,
400
list(PlanMerge._subtract_plans(old_plan, new_plan)))
402
def test_plan_merge_with_base(self):
403
self.add_version('COMMON', [], 'abc')
404
self.add_version('THIS', ['COMMON'], 'abcd')
405
self.add_version('BASE', ['COMMON'], 'eabc')
406
self.add_version('OTHER', ['BASE'], 'eafb')
407
plan = PlanMerge.plan_merge_with_base('THIS', 'BASE', 'OTHER',
409
self.assertEqual([('unchanged', 'a\n'),
411
('unchanged', 'b\n'),