diff options
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/test_cfg.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py index 0279c6a..5a22f76 100644 --- a/tests/unit/test_cfg.py +++ b/tests/unit/test_cfg.py @@ -1613,12 +1613,21 @@ class CommonOptsTestCase(BaseTestCase): self.conf(['--log-file', log_file]) self.assertEquals(self.conf.log_file, log_file) - def test_logfile(self): + def test_logfile_deprecated(self): logfile = '/some/other/path/foo-bar.log' - #NOTE(dprince): this is now a deprecated option for --log-file self.conf(['--logfile', logfile]) self.assertEquals(self.conf.log_file, logfile) + def test_log_dir(self): + log_dir = '/some/path/' + self.conf(['--log-dir', log_dir]) + self.assertEquals(self.conf.log_dir, log_dir) + + def test_logdir_deprecated(self): + logdir = '/some/other/path/' + self.conf(['--logdir', logdir]) + self.assertEquals(self.conf.log_dir, logdir) + class ConfigParserTestCase(unittest.TestCase): def test_no_section(self): |
