def testLoadLoggingConfig(self): loadLoggingConfig(appName='unittest') import logging self.assertEquals(0, len(logging.getLogger('unknown').handlers)) self.assertEquals(2, len(logging.getLogger('rest').handlers)) self.assertTrue('openclos-unittest.log' in logging.getLogger( 'rest').handlers[1].baseFilename)
def setUp(self): propLoader.loadLoggingConfig(appName = 'unittest')
def on_start(self): loadLoggingConfig(appName=moduleName) self.logger = logging.getLogger(moduleName) self.fabricCount = 0 '''
def testLoadLoggingConfig(self): loadLoggingConfig(appName = 'unittest') import logging self.assertEquals(0, len(logging.getLogger('unknown').handlers)) self.assertEquals(2, len(logging.getLogger('rest').handlers)) self.assertTrue('openclos-unittest.log' in logging.getLogger('rest').handlers[1].baseFilename)
def on_start(self): loadLoggingConfig(appName=moduleName) self.logger = logging.getLogger(moduleName) self.fabricCount = 0 """
def setUp(self): propLoader.loadLoggingConfig(appName='unittest')