def doTestFile(self, filename, default=""): file = mkpath(filename) psql.runfile(file, default) self.checkResult(file)
def doTestFile(self, filename, default=''): file = mkpath(filename) psql.runfile(file,default) self.checkResult(file)
def doTest(self, num, default=""): # get file path to queryXX.sql file = mkpath("query%d.sql" % num) # run psql on file, and check result psql.runfile(file, default) self.checkResult(file)
def doTest(self, num, default=''): # get file path to queryXX.sql file = mkpath('query%d.sql' % num) # run psql on file, and check result psql.runfile(file,default) self.checkResult(file)