Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_move_into_scene_collection_sync_c.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                 ['A', [
20                     ['i', None],
21                     ['ii', None],
22                     ['iii', None],
23                     ]],
24                 ['B', None],
25                 ['C', [
26                     ['1', None],
27                     ['2', None],
28                     ['3', [
29                         ['dog', [
30                             ['cat', None],
31                             ]],
32                         ]],
33                     ]],
34                 ]
35         return reference_tree_map
36
37     def test_scene_collection_into(self):
38         """
39         Test outliner operations
40         """
41         tree = self.setup_tree()
42         self.assertTrue(tree['cat'].move_into(tree['dog']))
43         self.compare_tree_maps()
44
45
46 # ############################################################
47 # Main - Same For All Render Layer Tests
48 # ############################################################
49
50 if __name__ == '__main__':
51     UnitTesting._extra_arguments = setup_extra_arguments(__file__)
52     unittest.main()