def test_logging_config(self):
"""test logging config from file or default"""
topdir = os.path.dirname(os.path.dirname(__file__))
# logging config from default
os.system('rm %s/logging.conf' % topdir)
cmd, output = runCmdOutput(['-p', '7788'])
self.assertEqual(cmd.returncode, os.EX_OK)
# logging config from file
os.system('cp %s/logging.conf.sample %s/logging.conf' %
(topdir, topdir))
cmd, output = runCmdOutput(['-p', '7788'])
self.assertEqual(cmd.returncode, os.EX_OK)
评论列表
文章目录