def test_loglevel_no_logConf(self): self.flags(healthnmon_log_config="dummyfile") try: log.setup() except Exception: self.assert_(True) # raise exception
def setUp(self): super(HelperTestCase, self).setUp() self.flags(logging_greenthread_format_string="GTHREAD ID | " "%(levelname)s | " "%(gthread_id)d | " "%(message)s", healthnmon_log_config=self.log_config_file_path) logdir = 'healthnmon' if not os.path.exists(logdir): os.makedirs(logdir) log.setup()
def test_loglevel_logConf_None(self): self.flags(healthnmon_log_config="") log.setup() self.assert_(True) # do not raise exception