summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-28 10:34:31 -0400
committerScott Moser <smoser@ubuntu.com>2015-07-28 10:34:31 -0400
commitc6e7fb1752a93ed534080adf0588e4c7cdd99071 (patch)
tree48c3def00df21141210f6425061c1e5e9f899218 /tests/unittests/test_handler
parentf61a62434b36ab873b2b82a5ba69eda826755bfc (diff)
downloadvyos-cloud-init-c6e7fb1752a93ed534080adf0588e4c7cdd99071.tar.gz
vyos-cloud-init-c6e7fb1752a93ed534080adf0588e4c7cdd99071.zip
add trailing newline only if necessary
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r--tests/unittests/test_handler/test_handler_rsyslog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unittests/test_handler/test_handler_rsyslog.py b/tests/unittests/test_handler/test_handler_rsyslog.py
index 292559c5..e7666615 100644
--- a/tests/unittests/test_handler/test_handler_rsyslog.py
+++ b/tests/unittests/test_handler/test_handler_rsyslog.py
@@ -112,7 +112,7 @@ class TestApplyChanges(t_help.TestCase):
configs=configs, def_fname="default.cfg", cfg_dir=self.tmp)
fname = os.path.join(self.tmp, "default.cfg")
- expected_content = '\n'.join([c for c in configs]) + '\n'
+ expected_content = '\n'.join([c for c in configs])
found_content = util.load_file(fname)
self.assertEqual(expected_content, found_content)