def checkNumberOfIndependentSpecies(testId): print string.ljust("Check " + testId, rpadding), errorFlag = False value = int(readLine()) n = rrPython.getNumberOfIndependentSpecies() if n != value: errorFlag = True print passMsg(errorFlag)
def checkNumberOfIndependentSpecies(testId): print string.ljust ("Check " + testId, rpadding), errorFlag = False value = int (readLine()) n = rrPython.getNumberOfIndependentSpecies() if n != value: errorFlag = True print passMsg (errorFlag)
import rrPython import os import csv os.chdir('C:\\RoadRunner\\bin') function = 'getNumberOfIndependentSpecies' try: num = rrPython.getNumberOfIndependentSpecies() if str(num) is not False: result = 'True' else: result = 'False' except: result = 'False' PythonTestResults = open('C:\\RoadRunner\\PythonTestResults.csv', 'a') writer = csv.writer(PythonTestResults) writevar = function + '=' + result writer.writerow([writevar]) PythonTestResults.close()
import rrPython import os import csv os.chdir('C:\\RoadRunner\\bin') function = 'getNumberOfIndependentSpecies' try: num = rrPython.getNumberOfIndependentSpecies() if str(num) is not False: result = 'True' else: result = 'False' except: result = 'False' PythonTestResults = open('C:\\RoadRunner\\PythonTestResults.csv','a') writer = csv.writer(PythonTestResults) writevar = function + '=' + result writer.writerow([writevar]) PythonTestResults.close()