Ejemplo n.º 1
0
 def test_log_path_logfile_overrides_logdir(self):
     self.config(log_dir='/some/other/path',
                 log_file='/some/path/foo-bar.log')
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 2
0
 def test_log_path_logfile(self):
     self.config(log_file='/some/path/foo-bar.log')
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 3
0
 def test_log_path_none(self):
     self.config(log_dir=None, log_file=None)
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
Ejemplo n.º 4
0
 def test_log_path_logfile(self):
     self.config(log_file='/some/path/foo-bar.log')
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 5
0
 def test_log_path_logdir(self):
     self.config(log_dir='/some/path', log_file=None)
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 6
0
 def test_log_path_logfile_overrides_logdir(self):
     self.config(log_dir='/some/other/path',
                 log_file='/some/path/foo-bar.log')
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 7
0
 def test_log_path_logdir(self):
     self.config(log_dir='/some/path', log_file=None)
     self.assertEquals(log._get_log_file_path(binary='foo-bar'),
                       '/some/path/foo-bar.log')
Ejemplo n.º 8
0
 def test_log_path_none(self):
     self.config(log_dir=None, log_file=None)
     self.assertTrue(log._get_log_file_path(binary='foo-bar') is None)
Ejemplo n.º 9
0
 def test_log_path_logfile_overrides_logdir(self):
     self.config(log_dir="/some/other/path", log_file="/some/path/foo-bar.log")
     self.assertEqual(log._get_log_file_path(binary="foo-bar"), "/some/path/foo-bar.log")
Ejemplo n.º 10
0
 def test_log_path_none(self):
     self.config(log_dir=None, log_file=None)
     self.assertIsNone(log._get_log_file_path(binary="foo-bar"))
Ejemplo n.º 11
0
 def test_log_path_logfile(self):
     self.config(log_file="/some/path/foo-bar.log")
     self.assertEqual(log._get_log_file_path(binary="foo-bar"), "/some/path/foo-bar.log")
Ejemplo n.º 12
0
 def test_log_path_logdir(self):
     self.config(log_dir="/some/path", log_file=None)
     self.assertEqual(log._get_log_file_path(binary="foo-bar"), "/some/path/foo-bar.log")