def test_execute_process_with_return_with_item_reject(self): process = Process(name=str(uuid.uuid4())) process.epilog_procedure = "ItemReject('Not Relevant');" success, status, error_log_file = self.tm1.processes.execute_process_with_return(process) self.assertFalse(success) self.assertEqual(status, "CompletedWithMessages") self.assertIsNotNone(error_log_file)
def test_get_error_log_file_content(self): process = Process(name=str(uuid.uuid4())) process.epilog_procedure = "ItemReject('Not Relevant');" if not self.tm1.processes.exists(process.name): self.tm1.processes.create(process) # with parameters success, status, error_log_file = self.tm1.processes.execute_with_return(process_name=process.name) self.assertFalse(success) self.assertEqual(status, "CompletedWithMessages") self.assertIsNotNone(error_log_file) content = self.tm1.processes.get_error_log_file_content(file_name=error_log_file) self.assertIn("Not Relevant", content) self.tm1.processes.delete(process.name)