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