Example #1
0
 def test_log_path_none(self):
     self.assertTrue(log.get_log_file_path(binary='foo-bar') is None)
Example #2
0
 def test_log_path_logfile_overrides_logdir(self):
     self.flags(logdir='/some/other/path',
                logfile='/some/path/foo-bar.log')
     self.assertEquals(log.get_log_file_path(binary='foo-bar'),
                      '/some/path/foo-bar.log')
Example #3
0
 def test_log_path_logfile(self):
     self.flags(logfile='/some/path/foo-bar.log')
     self.assertEquals(log.get_log_file_path(binary='foo-bar'),
                      '/some/path/foo-bar.log')