changeset 2375:f9b0d11a6569

use assert in linking test
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 12 Jul 2007 14:42:19 +0200
parents 629dea07759f
children d1b05e0eb6ea 06fabac5a1c7
files MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Thu Jul 12 14:40:06 2007 +0200
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Thu Jul 12 14:42:19 2007 +0200
@@ -593,7 +593,4 @@
         for test, expected in self._tests:
             html = self.parse(self.text % test)
             result = self.needle.search(html).group(1)
-            self.assertEqual(result, expected,
-                             'Expected "%(expected)s" but got "%(result)s"\n' % locals())
-
-
+            assert result == expected