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
This commit is contained in:
Mikhail S Medvedev 2017-02-22 14:40:53 -06:00
parent 375e772a6e
commit ae73f278a1
1 changed files with 8 additions and 0 deletions

View File

@ -109,3 +109,11 @@ class TestLcSet(testtools.TestCase):
with open(self._path) as f:
content = f.read()
self.assertEqual(content, RESULT3)
def test_set_raw_multiline(self):
conf = dsconf.LocalConf(self._path)
conf.set_local("enable_plugin foo http://foo branch"
"\nenable_plugin bar http://foo branch")
with open(self._path) as f:
content = f.read()
self.assertEqual(content, RESULT3)