mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
update test utils code
This commit is contained in:
parent
0edd0d4736
commit
9e62fd42b5
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||||
'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):
|
||||||
'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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue