def add_log(self, job_id, name, attempt): log = Log(name) log.started() self.logs[job_id].append(log) self.started += 1 return log
def setUp(self): self.log = Log('testme')