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')
 def test_log_path_none(self):
     self.flags(logdir=None, logfile=None)
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
 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')
Exemple #4
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')
Exemple #5
0
 def test_log_path_none(self):
     self.flags(logdir=None, logfile=None)
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
Exemple #6
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')