def test_merge_with_status_nonempty(self): old = [1, 2, 3] new = [2, 3, 4] self.assertEqual(vu.merge_with_status(old, new), [(vu.DELETED, 1), (vu.UNCHANGED, 2), (vu.UNCHANGED, 3), (vu.ADDED, 4)])
def test_merge_with_status(self): old = [1, 2] new = [] self.assertEqual(vu.merge_with_status(old, new), [(vu.DELETED, 1), (vu.DELETED, 2)])
def test_merge_with_status_old_empty(self): old = [] new = [1, 2] self.assertEqual(vu.merge_with_status(old, new), [(vu.ADDED, 1), (vu.ADDED, 2)])