예제 #1
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')
예제 #2
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')
예제 #3
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)
예제 #4
0
파일: test_log.py 프로젝트: kiall/nova
 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')
예제 #5
0
파일: test_log.py 프로젝트: kiall/nova
 def test_log_path_none(self):
     self.flags(logdir=None, logfile=None)
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
예제 #6
0
파일: test_log.py 프로젝트: kiall/nova
 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')
예제 #7
0
파일: test_log.py 프로젝트: nimbis/nova
 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")
예제 #8
0
파일: test_log.py 프로젝트: nimbis/nova
 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")