changeset 5430:c18b36185649

Tests updated to conform with line number anchors in plain text parser blocks.
author Eugene Syromyatnikov <evgsyr@gmail.com>
date Fri, 15 Jan 2010 03:26:42 +0300
parents 4d3f51792160
children 5886d3b46063
files MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Fri Jan 15 03:25:03 2010 +0300
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Fri Jan 15 03:26:42 2010 +0300
@@ -465,7 +465,7 @@
 }}}}"""
         output = self.parse(raw)
         output = ''.join(output)
-        assert 'Example <ul><li style="list-style-type:none"><pre>You can use {{{brackets}}}</pre>' in output
+        assert re.search('Example <ul><li style="list-style-type:none"><pre><span class="anchor" id="[^"]*"></span>You can use {{{brackets}}}</pre>', output)
 
     def testManyNestingPreBrackets(self):
         """ tests two nestings  ({{{ }}} and {{{ }}}) in one line for the wiki parser
@@ -475,8 +475,8 @@
 }}}}"""
         output = self.parse(raw)
         output = ''.join(output)
-        expected = '<pre>Test {{{brackets}}} and test {{{brackets}}}'
-        assert expected in output
+        expected = '<pre><span class="anchor" id="[^"]*"></span>Test {{{brackets}}} and test {{{brackets}}}'
+        assert re.search(expected, output)
 
     def testMultipleShortPreSections(self):
         """