diff options
author | Michael Basnight <mbasnight@gmail.com> | 2012-12-05 16:00:11 -0600 |
---|---|---|
committer | Michael Basnight <mbasnight@gmail.com> | 2012-12-05 16:01:12 -0600 |
commit | 7cf016a21558803039cfadd2b98cc5cab528972f (patch) | |
tree | f2b94e700394d2490acb2d64a47642b3c9453180 /tests | |
parent | 3a0bb9fe3f986d755ef428d3bc437b198c768684 (diff) | |
download | oslo-7cf016a21558803039cfadd2b98cc5cab528972f.tar.gz oslo-7cf016a21558803039cfadd2b98cc5cab528972f.tar.xz oslo-7cf016a21558803039cfadd2b98cc5cab528972f.zip |
Fixing the trim for ListOp when reading from config file
Fixes Bug 1087018
Change-Id: I1c2d34166ae85add86daab6a7483b63297d00f66
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_cfg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py index dd20461..a9508ed 100644 --- a/tests/unit/test_cfg.py +++ b/tests/unit/test_cfg.py @@ -595,6 +595,12 @@ class ConfigFileOptsTestCase(BaseTestCase): def test_conf_file_list_ignore_deprecated(self): self._do_deprecated_test_ignore(ListOpt, 'd,e,f', ['d', 'e', 'f']) + def test_conf_file_list_spaces_use_deprecated(self): + self._do_deprecated_test_use(ListOpt, 'a, b, c', ['a', 'b', 'c']) + + def test_conf_file_list_spaces_ignore_deprecated(self): + self._do_deprecated_test_ignore(ListOpt, 'd, e, f', ['d', 'e', 'f']) + def test_conf_file_multistr_default(self): self.conf.register_opt(MultiStrOpt('foo', default=['bar'])) |