Mercurial > moin > 1.9
changeset 2050:05e4ecc7d8cb
test_parser_text_moin_wiki:tests for url after block added
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Sun, 10 Jun 2007 00:23:41 +0200 |
parents | 94af8c2afeb0 |
children | b1046ec29bca |
files | MoinMoin/_tests/test_parser_text_moin_wiki.py |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/_tests/test_parser_text_moin_wiki.py Sat Jun 09 17:34:13 2007 +0200 +++ b/MoinMoin/_tests/test_parser_text_moin_wiki.py Sun Jun 10 00:23:41 2007 +0200 @@ -462,3 +462,21 @@ '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()) + + 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()) +