changeset 612:a68688927b42 pytest2

added display messages on test failure in test_wikiutil.testdrawing2fname()
author pkumar <contactprashantat@gmail.com>
date Sun, 03 Jul 2011 16:56:50 +0530
parents 2c52e4d20d01
children cdfb5c99b774
files MoinMoin/_tests/test_wikiutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_wikiutil.py	Sun Jul 03 16:51:58 2011 +0530
+++ b/MoinMoin/_tests/test_wikiutil.py	Sun Jul 03 16:56:50 2011 +0530
@@ -189,11 +189,11 @@
     # with extension not in config.drawing_extensions
     result = wikiutil.drawing2fname('Moin_drawing.txt')
     expected = 'Moin_drawing.txt.tdraw'
-    assert result == expected
+    assert result == expected, ('Expected "%(expected)s" but got "%(result)s"') % locals())
     # with extension in config.drawing_extensions
     result = wikiutil.drawing2fname('Moindir.Moin_drawing.jpg')
     expected = 'Moindir.Moin_drawing.jpg'
-    assert result == expected    
+    assert result == expected, ('Expected "%(expected)s" but got "%(result)s"') % locals())    
     
 coverage_modules = ['MoinMoin.wikiutil']