Commit 06cfc52a by Michael DeHaan

fix tests and change nosetests flags so asserts show what comparisons failed

parent 618a519e
......@@ -59,7 +59,7 @@ RPMNVR = "$(NAME)-$(VERSION)-$(RPMRELEASE)$(RPMDIST)"
all: clean python
tests:
PYTHONPATH=./lib nosetests -v
PYTHONPATH=./lib nosetests -d -v
# To force a rebuild of the docs run 'touch VERSION && make docs'
docs: $(MANPAGES)
......
......@@ -300,14 +300,14 @@ class TestUtils(unittest.TestCase):
res = ansible.utils.template("test", template, {})
assert res == u'hello world\n'
assert res == u'hello world'
def test_varReplace_include_script(self):
template = 'hello $PIPE(echo world)'
res = ansible.utils.template("test", template, {})
assert res == u'hello world\n'
assert res == u'hello world'
#####################################
### Template function tests
......
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