Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_move_above_below_scene_collection_sync_e.py
1 # ############################################################
2 # Importing - Same For All Render Layer Tests
3 # ############################################################
4
5 import unittest
6 import os
7 import sys
8
9 from view_layer_common import *
10
11
12 # ############################################################
13 # Testing
14 # ############################################################
15
16 class UnitTesting(MoveSceneCollectionSyncTesting):
17     def get_reference_scene_tree_map(self):
18         # original tree, no changes
19         reference_tree_map = [
20                 ['A', [
21                     ['i', None],
22                     ['ii', None],
23                     ]],
24                 ['B', None],
25                 ['C', [
26                     ['1', None],
27                     ['2', None],
28                     ['3', [
29                         ['dog', None],
30                         ['iii', None],
31                         ['cat', None],
32                         ]],
33                     ]],
34                 ]
35         return reference_tree_map
36
37     def test_scene_collection_move_a(self):
38         """
39         Test outliner operations
40         """
41         tree = self.setup_tree()
42         self.assertTrue(tree['iii'].move_below(tree['dog']))
43         self.compare_tree_maps()
44
45     def test_scene_collection_move_b(self):
46         """
47         Test outliner operations
48         """
49         tree = self.setup_tree()
50         self.assertTrue(tree['iii'].move_above(tree['cat']))
51         self.compare_tree_maps()
52
53
54 # ############################################################
55 # Main - Same For All Render Layer Tests
56 # ############################################################
57
58 if __name__ == '__main__':
59     UnitTesting._extra_arguments = setup_extra_arguments(__file__)
60     unittest.main()