summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail S Medvedev <mmedvede@us.ibm.com>2017-02-22 14:40:53 -0600
committerMikhail S Medvedev <mmedvede@us.ibm.com>2017-02-22 14:46:24 -0600
commitae73f278a1a6d71bcd67dca2b8f7dd2fbe5a8d2a (patch)
tree57517de8307b2ba199de083a669e00a36d9487c5
parent375e772a6e83ef53657c954eae1f1f6676afc403 (diff)
add set_local_raw_multiline test
setlc_raw can be used to set several lines at once. The test checks that it works as expected. See I565f5420743fbd95e9d744010c488953c54dd8a4 for some context of why that is useful. Change-Id: I21bd78fa6169002a70fa9074d56d985bfc0b833f
Notes
Notes (review): Code-Review+2: Sean Dague <sean@dague.net> Workflow+1: Sean Dague <sean@dague.net> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 22 Feb 2017 21:03:05 +0000 Reviewed-on: https://review.openstack.org/437139 Project: openstack/devstack-tools Branch: refs/heads/master
-rw-r--r--devstack/tests/test_localconf_set_local.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/devstack/tests/test_localconf_set_local.py b/devstack/tests/test_localconf_set_local.py
index 8ba6003..d508563 100644
--- a/devstack/tests/test_localconf_set_local.py
+++ b/devstack/tests/test_localconf_set_local.py
@@ -109,3 +109,11 @@ class TestLcSet(testtools.TestCase):
109 with open(self._path) as f: 109 with open(self._path) as f:
110 content = f.read() 110 content = f.read()
111 self.assertEqual(content, RESULT3) 111 self.assertEqual(content, RESULT3)
112
113 def test_set_raw_multiline(self):
114 conf = dsconf.LocalConf(self._path)
115 conf.set_local("enable_plugin foo http://foo branch"
116 "\nenable_plugin bar http://foo branch")
117 with open(self._path) as f:
118 content = f.read()
119 self.assertEqual(content, RESULT3)