comparison MoinMoin/parser/_tests/test_text_moin_wiki.py @ 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 7e7560f2cddd
children a7f4b02f5fdb
comparison
equal deleted inserted replaced
2374:629dea07759f 2375:f9b0d11a6569
591 def testTextFormating(self): 591 def testTextFormating(self):
592 """ parser.wiki: text formating """ 592 """ parser.wiki: text formating """
593 for test, expected in self._tests: 593 for test, expected in self._tests:
594 html = self.parse(self.text % test) 594 html = self.parse(self.text % test)
595 result = self.needle.search(html).group(1) 595 result = self.needle.search(html).group(1)
596 self.assertEqual(result, expected, 596 assert result == expected
597 'Expected "%(expected)s" but got "%(result)s"\n' % locals())
598
599