示例#1
0
 def test_without_nodes_we_do_not_support_rendering(self):
     obj = bpy.data.materials.new("Material")
     obj.use_nodes = False
     assert subject.can_support_rendering_style(obj) is False
示例#2
0
 def test_anything_with_nodes_can_support_a_rendering_style(self):
     obj = bpy.data.materials.new("Material")
     obj.use_nodes = True
     assert subject.can_support_rendering_style(obj) is True