def test_object_empty(self): self.send_strings([ bl.data_objects_new("Empty", None), bl.data_objects_new("Empty", None) ], to=0) self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0) self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0) self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0) self.send_strings([bl.data_objects_rename("Empty.001", "Empty")], to=0) self.send_strings([bl.data_objects_new("Another_empty", None)], to=0) self.assert_matches()
def test_light(self): if self.vrtist_protocol: # use exception since the @unittest.skipIf() cannot access self raise unittest.SkipTest("FAILS in VRtist mode") self.send_strings([ bl.ops_objects_light_add("POINT"), bl.ops_objects_light_add("POINT") ], to=0) self.send_strings([bl.data_objects_rename("Point.001", "Point")], to=0) self.send_strings([bl.data_objects_rename("Point.001", "Point")], to=0) self.send_strings([bl.data_objects_rename("Point.001", "Point")], to=0) self.assert_matches()
def test_update_object(self): self.send_strings([bl.data_objects_rename("A", "B")], to=0) delay = 0.0 time.sleep(delay) self.send_strings([bl.data_objects_update("B", ".location[1] = 2.")], to=1) time.sleep(1.0) # wrong object updated self.assert_matches()
def test_update_object(self): self.send_strings([bl.data_objects_rename("A", "B")], to=0) delay = 0.0 time.sleep(delay) self.send_strings([bl.data_objects_update("B", ".location[1] = 2.")], to=1) # wrong object updated successful = False self.assertTrue(successful)
def test_data_objects_rename(self): self.send_strings([ bl.data_objects_rename("EmptyInSceneMaster", "EmptyInSceneMaster_renamed") ], to=0) delay = 0.0 time.sleep(delay) self.send_strings([bl.data_scenes_rename("Scene", "Scene_renamed")], to=1) self.assert_matches()