コード例 #1
0
ファイル: test_log.py プロジェクト: anotherjesse/nova
 def test_log_path_none(self):
     self.assertTrue(log.get_log_file_path(binary='foo-bar') is None)
コード例 #2
0
ファイル: test_log.py プロジェクト: anotherjesse/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')
コード例 #3
0
ファイル: test_log.py プロジェクト: anotherjesse/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')