def __init__(self, daemonType, daemonId, callback): coreConfig = CoreConfig() self.logFile = coreConfig.getLogFile(daemonType) #, daemonId) self.pidFile = coreConfig.getPidFile(daemonType) #, daemonId) self.name = 'chains-%s-%s' % (daemonType, daemonId) self.daemonType = daemonType self.daemonId = daemonId self.callback = callback
def test_When_getting_logfile_It_returns_the_correct_path(self): conf = CoreConfig(file=self.path) path = conf.getLogFile('manager') self.assertEquals('/var/log/chains/manager.log', path)