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