add more tests :

- test part of ansible.runner.filter_plugins.core
 - test ansible.utils.unfrackpath
This commit is contained in:
Michael Scherer 2013-09-21 12:57:25 +02:00
parent 4efdf0d49f
commit 399d57a651
2 changed files with 29 additions and 2 deletions

View file

@ -15,6 +15,12 @@ class TestUtils(unittest.TestCase):
#####################################
### varReplace function tests
def test_unfrackpath(self):
os.symlink("/etc", "/tmp/etc")
a = ansible.utils.unfrackpath('$HOME/../../tmp/etc/')
assert a == '/etc'
os.unlink('/tmp/etc')
def test_varReplace_simple(self):
template = 'hello $who'
vars = {