comparison test/test_rlog.py @ 2992:6fe75dcb0b34

some unit test fixes
author Richard Jones <richard@users.sourceforge.net>
date Wed, 08 Dec 2004 01:24:42 +0000
parents fa50e1347397
children
comparison
equal deleted inserted replaced
2991:b9a55628a78d 2992:6fe75dcb0b34
5 class LoggingTestCase(unittest.TestCase): 5 class LoggingTestCase(unittest.TestCase):
6 def setUp(self): 6 def setUp(self):
7 self.logging = rlog.BasicLogging() 7 self.logging = rlog.BasicLogging()
8 self.file = StringIO.StringIO() 8 self.file = StringIO.StringIO()
9 self.logging.setFile(self.file) 9 self.logging.setFile(self.file)
10 self.logging.setLevel(self.logging.LVL_INFO)
10 def testLevels(self): 11 def testLevels(self):
11 logger = self.logging.getLogger('test') 12 logger = self.logging.getLogger('test')
12 v1 = self.file.getvalue() 13 v1 = self.file.getvalue()
13 logger.debug('test') 14 logger.debug('test')
14 v2 = self.file.getvalue() 15 v2 = self.file.getvalue()

Roundup Issue Tracker: http://roundup-tracker.org/