Commit 9e62fd42 by Michael DeHaan

update test utils code

parent 0edd0d47
...@@ -222,7 +222,7 @@ class TestUtils(unittest.TestCase): ...@@ -222,7 +222,7 @@ class TestUtils(unittest.TestCase):
'who': 'world', 'who': 'world',
} }
res = ansible.utils.template_from_file("test", "template-basic", vars, {}) res = ansible.utils.template_from_file("test", "template-basic", vars)
assert res == 'hello world' assert res == 'hello world'
...@@ -231,7 +231,7 @@ class TestUtils(unittest.TestCase): ...@@ -231,7 +231,7 @@ class TestUtils(unittest.TestCase):
'who': 'world', 'who': 'world',
} }
res = ansible.utils.template_from_file("test", "template-whitespace", vars, {}) res = ansible.utils.template_from_file("test", "template-whitespace", vars)
assert res == 'hello world\n' assert res == 'hello world\n'
...@@ -240,7 +240,7 @@ class TestUtils(unittest.TestCase): ...@@ -240,7 +240,7 @@ class TestUtils(unittest.TestCase):
'who': u'wórld', 'who': u'wórld',
} }
res = ansible.utils.template_from_file("test", "template-basic", vars, {}) res = ansible.utils.template_from_file("test", "template-basic", vars)
assert res == u'hello wórld' assert res == u'hello wórld'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment