def setUp(self): super(SysLogHandlersTestCase, self).setUp() self.facility = logging.handlers.SysLogHandler.LOG_USER self.rfclogger = handlers.RFCSysLogHandler(facility=self.facility) self.rfclogger.binary_name = 'Foo_application' self.logger = logging.handlers.SysLogHandler(facility=self.facility) self.logger.binary_name = 'Foo_application'
def setUp(self): super(SysLogHandlersTestCase, self).setUp() if sys.platform != 'linux2': self.skip("SKIP: This test work on Linux platform only.") self.facility = logging.handlers.SysLogHandler.LOG_USER self.rfclogger = handlers.RFCSysLogHandler(address='/dev/log', facility=self.facility) self.rfclogger.binary_name = 'Foo_application' self.logger = logging.handlers.SysLogHandler(address='/dev/log', facility=self.facility) self.logger.binary_name = 'Foo_application'