Пример #1
0
 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)])
Пример #2
0
 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)])
Пример #3
0
 def test_merge_with_status(self):
     old = [1, 2]
     new = []
     self.assertEqual(vu.merge_with_status(old, new),
                      [(vu.DELETED, 1), (vu.DELETED, 2)])
Пример #4
0
 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)])
Пример #5
0
 def test_merge_with_status(self):
     old = [1, 2]
     new = []
     self.assertEqual(vu.merge_with_status(old, new), [(vu.DELETED, 1),
                                                       (vu.DELETED, 2)])
Пример #6
0
 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)])