Browse code

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

Michael DeHaan authored on 2012/09/28 11:12:15
Showing 2 changed files
... ...
@@ -59,7 +59,7 @@ RPMNVR = "$(NAME)-$(VERSION)-$(RPMRELEASE)$(RPMDIST)"
59 59
 all: clean python
60 60
 
61 61
 tests: 
62
-	PYTHONPATH=./lib nosetests -v
62
+	PYTHONPATH=./lib nosetests -d -v
63 63
 
64 64
 # To force a rebuild of the docs run 'touch VERSION && make docs'
65 65
 docs: $(MANPAGES)
... ...
@@ -300,14 +300,14 @@ class TestUtils(unittest.TestCase):
300 300
 
301 301
         res = ansible.utils.template("test", template, {})
302 302
 
303
-        assert res == u'hello world\n'
303
+        assert res == u'hello world'
304 304
 
305 305
     def test_varReplace_include_script(self):
306 306
         template = 'hello $PIPE(echo world)'
307 307
 
308 308
         res = ansible.utils.template("test", template, {})
309 309
 
310
-        assert res == u'hello world\n'
310
+        assert res == u'hello world'
311 311
 
312 312
     #####################################
313 313
     ### Template function tests