def __init__(self, path): dsunittest.trace("Logging messages to %s" % path) self.file_ = open(path, "a+")
def handleMessage(self, message): dsunittest.trace(message) self.file_.write(str(message) + "\n") self.file_.flush()
def taskFunction(output=output, id=id, g=g): i = g.next() dsunittest.trace("taskFunction %s" % i) output.append(i) return i