Changeset 944 in tailor


Ignore:
Timestamp:
10/20/05 02:33:09 (8 years ago)
Author:
lele@…
Hash name:
20051020003309-97f81-5421c99392806d7747d276c5313c0e780c91edf1
Message:

Little test for the logging subsystem

Location:
vcpx/tests
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/tests/config.py

    r937 r944  
    7373        wd = project4.workingDir() 
    7474        self.assert_(not wd.shared_basedirs) 
     75 
     76    def testWithLogging(self): 
     77        """Verify a configuration containing also a [[logging]] section""" 
     78 
     79        from logging import getLogger 
     80 
     81        config = Config(self.getTestConfiguration("config-with_logging"), {}) 
     82 
     83        logger = getLogger() 
     84        self.assertEqual(logger.handlers[0].formatter._fmt, 'DUMMY') 
Note: See TracChangeset for help on using the changeset viewer.