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_f.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         reference_tree_map = [
19                 ['B', None],
20                 ['C', [
21                     ['1', None],
22                     ['2', None],
23                     ['3', [
24                         ['A', [
25                             ['i', None],
26                             ['ii', None],
27                             ['iii', None],
28                             ]],
29                         ['dog', None],
30                         ['cat', None],
31                         ]],
32                     ]],
33                 ]
34         return reference_tree_map
35
36     def test_scene_collection_move(self):
37         """
38         Test outliner operations
39         """
40         tree = self.setup_tree()
41         self.assertTrue(tree['A'].move_above(tree['dog']))
42         self.compare_tree_maps()
43
44
45 # ############################################################
46 # Main - Same For All Render Layer Tests
47 # ############################################################
48
49 if __name__ == '__main__':
50     UnitTesting._extra_arguments = setup_extra_arguments(__file__)
51     unittest.main()