summaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-12-06 12:42:02 +0000
committerGerrit Code Review <review@openstack.org>2012-12-06 12:42:02 +0000
commitec7a2ee73ffa86d0a1b9b490798d13dc53d20706 (patch)
tree68cd099f2834ea7759288670f489541a8c67b0d3 /tests/unit
parent255a27333092be0523949bd624c94b740515d018 (diff)
parent7cf016a21558803039cfadd2b98cc5cab528972f (diff)
Merge "Fixing the trim for ListOp when reading from config file"
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_cfg.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py
index be64d13..e7d58ec 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']))