diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-09-02 11:58:01 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-09-02 11:58:01 -0700 |
commit | 1b64702b9aaadbdae67640b4aa85c0149851768b (patch) | |
tree | 65902628442d1928b94a6a172973ba9d114dfb87 | |
parent | 1998eddf8d5213e476973a39a0ee57db020941ec (diff) | |
download | ansible-1b64702b9aaadbdae67640b4aa85c0149851768b.tar.gz |
Fix templar unittests for change in preserve_trailing_newline parameter's default value
-rw-r--r-- | test/units/template/test_templar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/units/template/test_templar.py b/test/units/template/test_templar.py index e4627c2c61..a5da0b7686 100644 --- a/test/units/template/test_templar.py +++ b/test/units/template/test_templar.py @@ -58,8 +58,9 @@ class TestTemplar(unittest.TestCase): # test some basic templating self.assertEqual(templar.template("{{foo}}"), "bar") - self.assertEqual(templar.template("{{foo}}\n"), "bar") + self.assertEqual(templar.template("{{foo}}\n"), "bar\n") self.assertEqual(templar.template("{{foo}}\n", preserve_trailing_newlines=True), "bar\n") + self.assertEqual(templar.template("{{foo}}\n", preserve_trailing_newlines=False), "bar") self.assertEqual(templar.template("foo", convert_bare=True), "bar") self.assertEqual(templar.template("{{bam}}"), "bar") self.assertEqual(templar.template("{{num}}"), 1) |