Esempio n. 1
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)
Esempio n. 2
0
 def setUp(self):
     propLoader.loadLoggingConfig(appName = 'unittest')
Esempio n. 3
0
 def on_start(self):
     loadLoggingConfig(appName=moduleName)
     self.logger = logging.getLogger(moduleName)
     self.fabricCount = 0
     '''
Esempio n. 4
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)
Esempio n. 5
0
 def on_start(self):
     loadLoggingConfig(appName=moduleName)
     self.logger = logging.getLogger(moduleName)
     self.fabricCount = 0
     """
Esempio n. 6
0
 def setUp(self):
     propLoader.loadLoggingConfig(appName='unittest')