def testGetLinesFromLogFile(self): handle, path = tempfile.mkstemp() message = 'aMessage' with open(path, 'w') as yamlFile: yamlFile.write(message) with open(path) as readFile: result = utils.getLinesFromLogFile(readFile) self.assertEqual(result, [message])
def getErrLines(self): """ Return the lines of the server stderr file """ return utils.getLinesFromLogFile(self.errFile)
def getOutLines(self): """ Return the lines of the server stdout file """ return utils.getLinesFromLogFile(self.outFile)
def getErrLines(self): return utils.getLinesFromLogFile(self.errFile)
def getOutLines(self): return utils.getLinesFromLogFile(self.outFile)