changeset 4561:57ab9fdceac0

fix creole parser's anchor test
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Feb 2009 17:06:07 +0100
parents 050428d1c044
children 2f9b78965bce
files MoinMoin/parser/_tests/test_text_creole.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_creole.py	Sun Feb 08 04:13:22 2009 +0100
+++ b/MoinMoin/parser/_tests/test_text_creole.py	Sun Feb 08 17:06:07 2009 +0100
@@ -38,6 +38,7 @@
         formatter.setPage(page)
         page.formatter = formatter
         request.formatter = formatter
+        request.page = page
         parser = CreoleParser(body, request, line_anchors=False)
         formatter.startContent('') # needed for _include_stack init
         output = request.redirectedOutput(parser.format, formatter)
@@ -409,9 +410,7 @@
 
     def testAnchor(self):
         html = self.parse("{{#anchor}}")
-        assert '<a ' in html # must create a link
-        assert 'name="anchor"' in html
-        assert '></a>' in html
+        assert 'id="anchor"' in html
 
 coverage_modules = ['MoinMoin.parser.text_creole']