def testWriteFile(self):
   runner = ProgramRunner(TEST_PROGRAM, 
                          self.table,
                          user_directory=TEST_DIR,
                          program_filename=TEST_TEXT_FILE)
   self._evaluateRunnerExecution(runner.writeFiles(),
                                 expected_lines=TEST_PROGRAM)
 def testExecuteWithAPIObject(self):
   writeObjectToFile(self.table)
   runner = ProgramRunner(TEST_PROGRAM, 
                          self.table,
                          user_directory=TEST_DIR,
                          program_filename=TEST_PROGRAM_FILE)
   column = self.table.columnFromName("VALID_FORMULA")
   column.setFormula(TEST_PROGRAM)
   error = runner.execute(create_API_object=True)
   self._evaluateRunnerExecution(error)
 def testSimpleExecute(self):
   runner = ProgramRunner(TEST_PROGRAM, 
                          self.table,
                          user_directory=TEST_DIR,
                          program_filename=TEST_TEXT_FILE)
   self._evaluateRunnerExecution(runner.execute())