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_pidfile_It_returns_the_correct_path(self): conf = CoreConfig(file=self.path) path = conf.getPidFile('manager') self.assertEquals('/var/run/chains/manager.pid', path)