Example #1
0
 def test_make_path_unique_clash_with_label_old(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {path: 1}, False)
     self.assertEqual(new_path, path[:-1] + ('I', ))
Example #2
0
 def test_make_path_unique_no_clash_old(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {}, False)
     self.assertEqual(new_path, path)
Example #3
0
 def test_make_path_unique_clash_with_label(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {path: 1}, True)
     self.assertEqual(new_path, path + ('I', ))
Example #4
0
 def test_make_path_unique_clash_with_label_old(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {path: 1}, False)
     self.assertEqual(new_path, path[:-1]+('I',))
Example #5
0
 def test_make_path_unique_no_clash_old(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {}, False)
     self.assertEqual(new_path, path)
Example #6
0
 def test_make_path_unique_clash_with_label(self):
     path = ('Element', 'A')
     new_path = make_path_unique(path, {path: 1}, True)
     self.assertEqual(new_path, path+('I',))