changeset 2051:b1046ec29bca

test_parser_text_moin_wiki:both url tests combined
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 10 Jun 2007 00:39:21 +0200
parents 05e4ecc7d8cb
children 1376525701c1
files MoinMoin/_tests/test_parser_text_moin_wiki.py
diffstat 1 files changed, 8 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_parser_text_moin_wiki.py	Sun Jun 10 00:23:41 2007 +0200
+++ b/MoinMoin/_tests/test_parser_text_moin_wiki.py	Sun Jun 10 00:39:21 2007 +0200
@@ -461,22 +461,15 @@
             self.assert_(match is not None,
                          'Expected "%(expected)s" but got "%(result)s"' % locals())
 
-
     def testUrlAfterBlock(self):
         """ parser.wiki: tests url after block element """
-        case = 'some text {{{some block text\n}}} and a URL http://moinmo.in/'
-        result = self.parse(case).strip()
-        match = result.endswith('</a>')
-        expected = True
-        self.assert_(match is True,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+        cases = ('some text {{{some block text\n}}} and a URL http://moinmo.in/',
+                 'some text {{{some block text\n}}} and a WikiName')
 
-    def testWikiNameAfterBlock(self):
-        """ parser.wiki: tests WikiName expanded to url after block element """
-        case = 'some text {{{some block text\n}}} and a WikiName'
-        result = self.parse(case).strip()
-        match = result.endswith('</a>')
-        expected = True
-        self.assert_(match is True,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+        for case in cases:          
+            result = self.parse(case).strip()
+            match = result.endswith('</a>')
+            expected = True
+            self.assert_(match is True,
+                         'Expected "%(expected)s" but got "%(result)s"' % locals())