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