changeset 534:d827734692ac

fix some easy test bugs, disable the severely broken tests imported from: moin--main--1.5--patch-538
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 08 Apr 2006 18:24:40 +0000
parents 3cb9dc02ed7a
children e49f23ca8a8a
files ChangeLog MoinMoin/_tests/broken/test_converter_text_html_text_x_moin.py MoinMoin/_tests/broken/test_formatter.py MoinMoin/_tests/broken/test_parser_wiki.py MoinMoin/_tests/test_converter_text_html_text_x_moin.py MoinMoin/_tests/test_formatter.py MoinMoin/_tests/test_parser_wiki.py MoinMoin/_tests/test_util_web.py MoinMoin/_tests/test_wikiutil.py MoinMoin/formatter/text_html.py docs/CHANGES tests/make_test.out
diffstat 12 files changed, 1692 insertions(+), 2797 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Apr 08 17:58:40 2006 +0000
+++ b/ChangeLog	Sat Apr 08 18:24:40 2006 +0000
@@ -2,6 +2,43 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-04-08 19:24:40 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-538
+
+    Summary:
+      fix some easy test bugs, disable the severely broken tests
+    Revision:
+      moin--main--1.5--patch-538
+
+    fix some easy test bugs, disable the severely broken tests
+    
+
+    new files:
+     MoinMoin/_tests/broken/.arch-ids/=id
+
+    modified files:
+     ChangeLog MoinMoin/_tests/test_util_web.py
+     MoinMoin/_tests/test_wikiutil.py
+     MoinMoin/formatter/text_html.py docs/CHANGES
+     tests/make_test.out
+
+    renamed files:
+     MoinMoin/_tests/.arch-ids/test_converter_text_html_text_x_moin.py.id
+       ==> MoinMoin/_tests/broken/.arch-ids/test_converter_text_html_text_x_moin.py.id
+     MoinMoin/_tests/.arch-ids/test_formatter.py.id
+       ==> MoinMoin/_tests/broken/.arch-ids/test_formatter.py.id
+     MoinMoin/_tests/.arch-ids/test_parser_wiki.py.id
+       ==> MoinMoin/_tests/broken/.arch-ids/test_parser_wiki.py.id
+     MoinMoin/_tests/test_converter_text_html_text_x_moin.py
+       ==> MoinMoin/_tests/broken/test_converter_text_html_text_x_moin.py
+     MoinMoin/_tests/test_formatter.py
+       ==> MoinMoin/_tests/broken/test_formatter.py
+     MoinMoin/_tests/test_parser_wiki.py
+       ==> MoinMoin/_tests/broken/test_parser_wiki.py
+
+    new directories:
+     MoinMoin/_tests/broken MoinMoin/_tests/broken/.arch-ids
+
+
 2006-04-08 18:58:40 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-537
 
     Summary:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/_tests/broken/test_converter_text_html_text_x_moin.py	Sat Apr 08 18:24:40 2006 +0000
@@ -0,0 +1,1140 @@
+# -*- coding: utf-8 -*-
+"""
+MoinMoin - MoinMoin.text_html_text_x_moin Tests
+
+@copyright: 2005 by Bastian Blank, ThomasWaldmann
+@license: GNU GPL, see COPYING for details.
+"""
+
+import unittest
+from MoinMoin import _tests
+
+from cStringIO import StringIO
+from MoinMoin.converter import text_html_text_x_moin as converter
+from MoinMoin.parser.wiki import Parser
+from MoinMoin.formatter.text_gedit import Formatter
+from MoinMoin.request import Clock
+
+convert = converter.convert
+error = converter.ConvertError
+
+
+class BaseTests(unittest.TestCase):
+
+    def setUp(self):
+        self.cfg = _tests.TestConfig(self.request, bang_meta=True)
+        
+    def tearDown(self):
+        del self.cfg
+
+    def do_convert_real(self, func_args, successful=True):
+        try:
+            ret = convert(*func_args)
+        except error, e:
+            if successful:
+                self.fail("fails with parse error: %s" % e)
+            else:
+                return
+        if successful:
+            return ret
+        else:
+            self.fail("doesn't fail with parse error")
+
+
+class MinimalPage(object):
+    def __init__(self):
+        self.hilite_re = None
+        self.page_name = "testpage"
+
+
+class MinimalRequest(object):
+    # TODO: do we really need this class? no other test uses a request replacement.
+
+    def __init__(self, request):
+        self.request = request
+        self.clock = Clock()
+        
+        # This is broken - tests that need correct content_lang will fail
+        self.content_lang = None
+        self.current_lang = None
+        
+        self.form = {}
+        self._page_headings = {}
+        self.result = []
+
+    def getText(self, text, formatted=True):
+        return text
+
+    def write(self, text):
+        self.result.append(text)
+
+    def __getattr__(self, name):
+        return getattr(self.request, name)
+
+
+class ConvertBlockRepeatableTests(BaseTests):
+    def do(self, text, output):
+        text = text.lstrip('\n')
+        output = output.strip('\n')
+        request = MinimalRequest(self.request)
+        page = MinimalPage()
+        formatter = Formatter(request)
+        formatter.setPage(page)
+        Parser(text, request).format(formatter)
+        repeat = ''.join(request.result).strip('\n')
+        self.failUnlessEqual(repeat, output)
+        out = self.do_convert_real([request, page.page_name, repeat])
+        self.failUnlessEqual(text, out)
+
+    def testComment01(self):
+        test = ur"""
+##test
+"""
+        output = u"""<pre class="comment">\n##test</pre>"""
+        self.do(test, output)
+
+    def testComment02(self):
+        test = ur"""
+##test
+##test
+"""
+        output = u"""
+<pre class="comment">\n##test</pre>
+<pre class="comment">\n##test</pre>
+"""
+        self.do(test, output)
+
+    def testHeading01(self):
+        test = ur"""
+= test1 =
+
+"""
+        output = ur"""
+<h2>test1</h2>
+"""
+        self.do(test, output)
+
+    def testHeading02(self):
+        test = ur"""
+= test1 =
+
+== test2 ==
+
+"""
+        output = ur"""
+<h2>test1</h2>
+<h3>test2</h3>
+"""
+        self.do(test, output)
+
+    def testListSuccess01(self):
+        test = ur"""
+ * test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess02(self):
+        test = ur"""
+ 1. test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess03(self):
+        test = ur"""
+ test:: test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess04(self):
+        test = ur"""
+ * test
+ * test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess05(self):
+        test = ur"""
+ 1. test
+ 1. test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+</li>
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess06(self):
+        test = ur"""
+ test:: test
+ test:: test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess07(self):
+        test = ur"""
+ * test
+  
+ * test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess08(self):
+        test = ur"""
+ 1. test
+  
+ 1. test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess09(self):
+        test = ur"""
+ test:: test
+  
+ test:: test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess10(self):
+        test = ur"""
+ * test
+  * test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess11(self):
+        test = ur"""
+ 1. test
+  1. test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess12(self):
+        test = ur"""
+ test:: test
+  test:: test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess13(self):
+        test = ur"""
+ * test
+  * test
+ * test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+</li>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess14(self):
+        test = ur"""
+ 1. test
+  1. test
+ 1. test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+</li>
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess15(self):
+        test = ur"""
+ test:: test
+  test:: test
+ test:: test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+</dd>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess16(self):
+        test = ur"""
+ * test
+
+ 1. test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess17(self):
+        test = ur"""
+ * test
+
+ test:: test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess18(self):
+        test = ur"""
+ 1. test
+
+ * test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess19(self):
+        test = ur"""
+ 1. test
+
+ test:: test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+"""
+        self.do(test, output)
+
+    def testListSuccess20(self):
+        test = ur"""
+ test:: test
+
+ * test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess21(self):
+        test = ur"""
+ test:: test
+
+ 1. test
+
+"""
+        output = ur"""
+<dl>
+<dt>test</dt>
+<dd><p>test </p>
+</dd>
+</dl>
+<ol type="1">
+<li><p>test </p>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess23(self):
+        test = ur"""
+ 1. test
+  * test
+
+"""
+        output = ur"""
+<ol type="1">
+<li><p>test </p>
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+</li>
+</ol>
+"""
+        self.do(test, output)
+
+    def testListSuccess26(self):
+        test = ur"""
+ * test
+
+test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+<p>test </p>
+"""
+        self.do(test, output)
+
+    def testListSuccess28(self):
+        test = ur"""
+ * test
+
+ test
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+<p>test </p>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testListSuccess29(self):
+        test = ur"""
+ * test
+  * test
+ test
+"""
+        output = ur"""
+"""
+        self.do(test, output)
+
+    def testListSuccess30(self):
+        test = ur"""
+ * test
+  * test
+  test
+"""
+        output = ur"""
+"""
+        self.do(test, output)
+
+    def testParagraph1(self):
+        test = ur"""
+test
+
+"""
+        output = ur"""
+<p>test </p>
+"""
+        self.do(test, output)
+
+    def testParagraph2(self):
+        test = ur"""
+test
+
+test
+
+"""
+        output = ur"""
+<p>test </p>
+<p>test </p>
+"""
+        self.do(test, output)
+
+    def testPreSuccess1(self):
+        test = ur"""
+{{{
+test
+}}}
+
+"""
+        output = ur"""
+<pre>
+test
+</pre>
+"""
+        self.do(test, output)
+
+    def testPreSuccess2(self):
+        test = ur"""
+{{{
+test
+test
+}}}
+
+"""
+        output = ur"""
+<pre>
+test
+test
+</pre>
+"""
+        self.do(test, output)
+
+    def testPreSuccess3(self):
+        test = ur"""
+{{{
+test
+
+test
+}}}
+
+"""
+        output = ur"""
+<pre>
+test
+
+test
+</pre>
+"""
+        self.do(test, output)
+
+    def testPreSuccess4(self):
+        test = ur"""
+{{{
+ * test
+}}}
+
+"""
+        output = ur"""
+<pre>
+ * test
+</pre>
+"""
+        self.do(test, output)
+
+    def testPreSuccess5(self):
+        test = ur"""
+{{{
+  }}}
+
+"""
+        output = ur"""
+<pre>
+  </pre>
+"""
+        self.do(test, output)
+
+    def testPreSuccess6(self):
+        test = ur"""
+ * {{{
+test
+}}}
+
+"""
+        output = ur"""
+<ul>
+<li>
+<pre>
+test
+</pre>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testPreSuccess7(self):
+        test = ur"""
+ * {{{
+   test
+   }}}
+
+"""
+        output = ur"""
+<ul>
+<li>
+<pre>
+   test
+   </pre>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testPreSuccess8(self):
+        test = ur"""
+ * test
+ {{{
+test
+}}}
+
+"""
+        output = ur"""
+<ul>
+<li><p>test 
+</p>
+<pre>
+test
+</pre>
+</li>
+</ul>
+"""
+        self.do(test, output)
+
+    def testPreSuccess9(self):
+        test = ur"""
+ * test
+
+{{{
+test
+}}}
+
+"""
+        output = ur"""
+<ul>
+<li><p>test </p>
+</li>
+</ul>
+
+<pre>
+test
+</pre>
+"""
+        self.do(test, output)
+
+    def testRule1(self):
+        test = ur"""
+----
+
+"""
+        output = ur"""
+<hr/>
+"""
+        self.do(test, output)
+
+    def testTable01(self):
+        test = ur"""
+|| ||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td>
+<p> </p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+    def testTable02(self):
+        test = ur"""
+||test||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td>
+<p>test</p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+    def testTable03(self):
+        test = ur"""
+||test||test||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td>
+<p>test</p>
+</td>
+<td>
+<p>test</p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+    def testTable04(self):
+        test = ur"""
+||test||
+||test||test||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td>
+<p>test</p>
+</td>
+</tr>
+<tr>
+<td>
+<p>test</p>
+</td>
+<td>
+<p>test</p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+    def testTable05(self):
+        test = ur"""
+||||test||
+||test||test||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td colspan="2" style="text-align: center;">
+<p>test</p>
+</td>
+</tr>
+<tr>
+<td>
+<p>test</p>
+</td>
+<td>
+<p>test</p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+    def testTable06(self):
+        test = ur"""
+||||test||test||
+||test||||test||
+
+"""
+        output = ur"""
+<div>
+<table>
+<tr>
+<td colspan="2" style="text-align: center;">
+<p>test</p>
+</td>
+<td>
+<p>test</p>
+</td>
+</tr>
+<tr>
+<td>
+<p>test</p>
+</td>
+<td colspan="2" style="text-align: center;">
+<p>test</p>
+</td>
+</tr>
+</table>
+</div>
+"""
+        self.do(test, output)
+
+class ConvertInlineFormatRepeatableTests(BaseTests):
+    def do(self, text, output):
+        text = text.lstrip('\n')
+        output = output.strip('\n')
+        output = "<p>%s </p>" % output
+        request = MinimalRequest(self.request)
+        page = MinimalPage()
+        formatter = Formatter(request)
+        formatter.setPage(page)
+        Parser(text, request).format(formatter)
+        repeat = ''.join(request.result).strip('\n')
+        self.failUnlessEqual(repeat, output)
+        out = self.do_convert_real([request, page.page_name, repeat])
+        out = out.rstrip('\n')
+        self.failUnlessEqual(text, out)
+
+    def testEmphasis01(self):
+        test = ur"''test''"
+        output = ur"<em>test</em>"
+        self.do(test, output)
+
+    def testEmphasis02(self):
+        test = ur"'''test'''"
+        output = ur"<strong>test</strong>"
+        self.do(test, output)
+
+    def testEmphasis03(self):
+        test = ur"'''''test'''''"
+        output = ur"<em><strong>test</strong></em>"
+        self.do(test, output)
+
+    def testEmphasis04(self):
+        test = ur"''test'''test'''''"
+        output = ur"<em>test<strong>test</strong></em>"
+        self.do(test, output)
+
+    def testEmphasis05(self):
+        test = ur"'''test''test'''''"
+        output = ur"<strong>test<em>test</em></strong>"
+        self.do(test, output)
+
+    def testEmphasis06(self):
+        test = ur"''test'''test'''test''"
+        output = ur"<em>test<strong>test</strong>test</em>"
+        self.do(test, output)
+
+    def testEmphasis07(self):
+        test = ur"'''test''test''test'''"
+        output = ur"<strong>test<em>test</em>test</strong>"
+        self.do(test, output)
+
+    def testEmphasis08(self):
+        test = ur"''test'''''test'''"
+        output = ur"<em>test</em><strong>test</strong>"
+        self.do(test, output)
+
+    def testEmphasis09(self):
+        test = ur"'''test'''''test''"
+        output = ur"<strong>test</strong><em>test</em>"
+        self.do(test, output)
+
+    def testEmphasis10(self):
+        test = ur"'''''test''test'''"
+        output = ur"<strong><em>test</em>test</strong>"
+        self.do(test, output)
+
+    def testEmphasis11(self):
+        test = ur"'''''test'''test''"
+        output = ur"<em><strong>test</strong>test</em>"
+        self.do(test, output)
+
+    def testFormatBig01(self):
+        test = ur"~+test+~"
+        output = ur"<big>test</big>"
+        self.do(test, output)
+
+    def testFormatSmall01(self):
+        test = ur"~-test-~"
+        output = ur"<small>test</small>"
+        self.do(test, output)
+
+    def testFormatStrike01(self):
+        test = ur"--(test)--"
+        output = ur"<strike>test</strike>"
+        self.do(test, output)
+
+    def testFormatSub01(self):
+        test = ur",,test,,"
+        output = ur"<sub>test</sub>"
+        self.do(test, output)
+
+    def testFormatSup01(self):
+        test = ur"^test^"
+        output = ur"<sup>test</sup>"
+        self.do(test, output)
+
+    def testFormatUnderline01(self):
+        test = ur"__test__"
+        output = ur"<u>test</u>"
+        self.do(test, output)
+
+    def testPre01(self):
+        test = ur"{{{test}}}"
+        output = ur"<tt>test</tt>"
+        self.do(test, output)
+
+    def testWhitespace01(self):
+        test = ur"''test '''test'''''"
+        output = ur"<em>test <strong>test</strong></em>"
+        self.do(test, output)
+
+class ConvertInlineItemRepeatableTests(BaseTests):
+    def do(self, text, output):
+        text = text.lstrip('\n')
+        output = output.strip('\n')
+        output = "<p>%s </p>" % output
+        request = MinimalRequest(self.request)
+        page = MinimalPage()
+        formatter = Formatter(request)
+        formatter.setPage(page)
+        Parser(text, request).format(formatter)
+        repeat = ''.join(request.result).strip('\n')
+        self.failUnlessEqual(repeat, output)
+        out = self.do_convert_real([request, page.page_name, repeat])
+        out = out.rstrip('\n')
+        self.failUnlessEqual(text, out)
+
+    def testWikiWord01(self):
+        test = ur"WikiWord"
+        output = ur"""<a class="nonexistent" href="./WikiWord">WikiWord</a>"""
+        self.do(test, output)
+
+    def testNoWikiWord01(self):
+        test = ur"!WikiWord"
+        output = ur"WikiWord"
+        self.do(test, output)
+
+    def testSmiley01(self):
+        test = ur":-)"
+        output = ur"""<img src="/wiki/modern/img/smile.png" alt=":-)" height="15" width="15">"""
+        self.do(test, output)
+
+class StripTests(unittest.TestCase):
+    def do(self, cls, text, output):
+        tree = converter.parse(text)
+        cls().do(tree)
+        out = StringIO()
+        try:
+            import xml.dom.ext
+        except ImportError:
+            raise _tests.TestSkiped('xml.dom.ext module is not available')
+        xml.dom.ext.Print(tree, out)
+        self.failUnlessEqual("<?xml version='1.0' encoding='UTF-8'?>%s" % output, out.getvalue().decode("utf-8"))
+
+class StripBreakTests(StripTests):
+    def do(self, text, output):
+        super(StripBreakTests, self).do(converter.strip_break, text, output)
+
+class StripWhitespaceTests(StripTests):
+    def do(self, text, output):
+        super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
+
+    def test1(self):
+        test = ur"""
+<t/>
+"""
+        output = ur"""<t/>"""
+        self.do(test, output)
+
+    def test2(self):
+        test = ur"""
+<t>
+  <z/>
+</t>
+"""
+        output = ur"""<t><z/></t>"""
+        self.do(test, output)
+
+    def test3(self):
+        test = ur"""
+<t>
+  <z>test</z>
+</t>
+"""
+        output = ur"""<t><z>test</z></t>"""
+        self.do(test, output)
+
+    def test3(self):
+        test = ur"""<p>&nbsp;</p>"""
+        output = ur""""""
+        self.do(test, output)
+
+    def test4(self):
+        test = ur"""<p>test </p>"""
+        output = ur"""<p>test</p>"""
+        self.do(test, output)
+
+class ConvertBrokenBrowserTests(BaseTests):
+    def do(self, text, output):
+        text = text.strip('\n')
+        output = output.lstrip('\n')
+        request = MinimalRequest(self.request)
+        page = MinimalPage()
+        out = self.do_convert_real([request, page.page_name, text])
+        self.failUnlessEqual(output, out)
+
+    def testList01(self):
+        test = ur"""
+<ul>
+<li>test</li>
+<ul>
+<li>test</li>
+</ul>
+<li>test</li>
+</ul>
+"""
+        output = ur"""
+ * test
+  * test
+ * test
+
+"""
+        self.do(test, output)
+
+if __name__ == '__main__':
+    unittest.main()
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/_tests/broken/test_formatter.py	Sat Apr 08 18:24:40 2006 +0000
@@ -0,0 +1,46 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - MoinMoin.formatter.* Tests
+
+    @copyright: 2005 by MoinMoin:AlexanderSchremmer
+    @license: GNU GPL, see COPYING for details.
+"""
+
+from unittest import TestCase
+import re
+from StringIO import StringIO
+from MoinMoin._tests import TestConfig
+from MoinMoin.Page import Page
+from MoinMoin.parser.wiki import Parser
+from MoinMoin import wikiutil
+
+
+class FormatterTestCase(TestCase):
+    def testSyntaxReference(self):
+        formatters = wikiutil.getPlugins("formatter", self.request.cfg)
+        for f_name in formatters:
+            #if f_name in ('dom_xml', ):
+            #    continue
+            
+            try:
+                formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
+            except wikiutil.PluginAttributeError:
+                pass
+            else:
+                print "Formatting using %r" % formatter
+                self.formatPage("SyntaxReference", formatter)
+                print "Done."
+
+    def formatPage(self, pagename, formatter):
+        """Parse a page. Should not raise an exception if the API of the
+        formatter is correct.
+        """
+
+        self.request.reset()
+        page = Page(self.request, pagename, formatter=formatter)
+        self.request.formatter = page.formatter = formatter(self.request)
+        #page.formatter.setPage(page)
+        #page.hilite_re = None
+        
+        return self.request.redirectedOutput(page.send_page, self.request)
+    
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/_tests/broken/test_parser_wiki.py	Sat Apr 08 18:24:40 2006 +0000
@@ -0,0 +1,452 @@
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - MoinMoin.parser.wiki Tests
+
+    TODO: these are actually parser+formatter tests. We should have
+    parser only tests here.
+
+    @copyright: 2003-2004 by Jürgen Hermann <jh@web.de>
+    @license: GNU GPL, see COPYING for details.
+"""
+
+import unittest
+import re
+from StringIO import StringIO
+from MoinMoin._tests import TestConfig
+from MoinMoin.Page import Page
+from MoinMoin.parser.wiki import Parser
+
+
+class ParserTestCase(unittest.TestCase):
+    """ Helper class that provide a parsing method """
+    
+    def parse(self, body):
+        """Parse body and return html
+
+        Create a page with body, then parse it and format using html formatter
+        """
+        assert body is not None
+        self.request.reset()
+        page = Page(self.request, 'ThisPageDoesNotExistsAndWillNeverBeReally')
+        page.set_raw_body(body)
+        from MoinMoin.formatter.text_html import Formatter
+        page.formatter = Formatter(self.request)
+        self.request.formatter = page.formatter
+        page.formatter.setPage(page)
+        page.hilite_re = None
+        
+        output = StringIO()
+        saved_write = self.request.write
+        self.request.write = output.write
+        try:
+            Parser(body, self.request).format(page.formatter)
+        finally:
+            self.request.write = saved_write
+        return output.getvalue()
+
+
+class ParagraphsTestCase(ParserTestCase):
+    """ Test paragraphs creating
+
+    All tests ignoring white space in output
+    """
+
+    def testFirstParagraph(self):
+         """ parser.wiki: first paragraph should be in <p> """
+         result = self.parse('First')
+         expected = re.compile(r'<p>\s*First\s*</p>')
+         self.assert_(expected.search(result),
+                      '"%s" not in "%s"' % (expected.pattern, result))
+
+    def testEmptyLineBetweenParagraphs(self):
+        """ parser.wiki: empty line separates paragraphs """
+        result = self.parse('First\n\nSecond')
+        expected = re.compile(r'<p>\s*Second\s*</p>')
+        self.assert_(expected.search(result),
+                     '"%s" not in "%s"' % (expected.pattern, result))
+        
+    def testParagraphAfterBlockMarkup(self):
+        """ parser.wiki: create paragraph after block markup """
+
+        markup = (
+            '----\n',
+            '[[en]]\n',
+            '|| table ||\n',
+            '= heading 1 =\n',
+            '== heading 2 ==\n',
+            '=== heading 3 ===\n',
+            '==== heading 4 ====\n',
+            '===== heading 5 =====\n',
+            )
+        for item in markup:
+            text = item + 'Paragraph'
+            result = self.parse(text)
+            expected = re.compile(r'<p.*?>\s*Paragraph\s*</p>')
+            self.assert_(expected.search(result),
+                         '"%s" not in "%s"' % (expected.pattern, result))
+
+
+class HeadingsTestCase(ParserTestCase):
+    """ Test various heading problems """
+
+    def setUp(self):
+        """ Require show_section_numbers = 0 to workaround counter
+        global state saved in request.
+        """
+        self.config = TestConfig(self.request, show_section_numbers=0)
+    
+    def tearDown(self):
+        del self.config
+
+    def testIgnoreWhiteSpaceAroundHeadingText(self):
+        """ parser.wiki: ignore white space around heading text
+
+        See bug: TableOfContentsBreakOnExtraSpaces.
+
+        Does not test mapping of '=' to h number, or valid html markup.
+        """
+        tests = (
+            '=  head =\n', # leading
+            '= head  =\n', # trailing
+            '=  head  =\n' # both
+                 )
+        expected = self.parse('= head =')
+        for test in tests:            
+            result = self.parse(test)
+            self.assertEqual(result, expected,
+                'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+
+class TOCTestCase(ParserTestCase):
+
+    def setUp(self):
+        """ Require show_section_numbers = 0 to workaround counter
+        global state saved in request.
+        """
+        self.config = TestConfig(self.request, show_section_numbers=0)
+    
+    def tearDown(self):
+        del self.config
+
+    def testHeadingWithWhiteSpace(self):
+        """ parser.wiki: TOC links to headings with white space
+        
+        See bug: TableOfContentsBreakOnExtraSpaces.
+
+        Does not test TOC or heading formating, just verify that spaces
+        around heading text does not matter.
+        """
+        standard = """
+[[TableOfContents]]
+= heading =
+Text
+"""
+        withWhitespace = """
+[[TableOfContents]]
+=   heading   =
+Text
+"""
+        expected = self.parse(standard)
+        result = self.parse(withWhitespace)
+        self.assertEqual(result, expected,
+            'Expected "%(expected)s" but got "%(result)s"' % locals())
+        
+
+class DateTimeMacroTestCase(ParserTestCase):
+   """ Test DateTime macro
+
+   Might fail due to libc problems, therefore the fail message warn
+   about this.
+
+   TODO: when this test fail, does it mean that moin code fail on that
+   machine? - can we fix this?
+   """
+   
+   text = 'XXX %s XXX'
+   needle = re.compile(text %  r'(.+)')
+   _tests = (
+       # test                                   expected
+       ('[[DateTime(1970-01-06T00:00:00)]]',   '1970-01-06 00:00:00'),
+       ('[[DateTime(259200)]]',                '1970-01-04 00:00:00'),
+       ('[[DateTime(2003-03-03T03:03:03)]]',   '2003-03-03 03:03:03'),
+       ('[[DateTime(2000-01-01T00:00:00Z)]]',  '2000-01-01 00:00:00'),
+       ('[[Date(2002-02-02T01:02:03Z)]]',      '2002-02-02'),
+       )
+
+   def setUp(self):
+       """ Require default date and time format config values """
+       self.config = TestConfig(self.request,
+                                defaults=('date_fmt', 'datetime_fmt'))
+   
+   def tearDown(self):
+       del self.config
+   
+   def testDateTimeMacro(self):
+       """ parser.wiki: DateTime macro """
+       note = """
+   
+   If this fails, it is likely a problem in your python / libc,
+   not in moin.  See also:
+   <http://sourceforge.net/tracker/index.php?func=detail&
+       aid=902172&group_id=5470&atid=105470>"""
+
+       for test, expected in self._tests:
+           html = self.parse(self.text % test)
+           result = self.needle.search(html).group(1)
+           self.assertEqual(result, expected,
+               'Expected "%(expected)s" but got "%(result)s"; %(note)s' % locals())
+                       
+
+class TextFormatingTestCase(ParserTestCase):
+    """ Test wiki markup """
+    
+    text = 'XXX %s XXX'
+    needle = re.compile(text %  r'(.+)')
+    _tests = (
+        # test,                     expected
+        ('no format',               'no format'),
+        ("''em''",                  '<em>em</em>'),
+        ("'''bold'''",              '<strong>bold</strong>'),
+        ("__underline__",           '<span class="u">underline</span>'),
+        ("'''''Mix''' at start''",  '<em><strong>Mix</strong> at start</em>'),
+        ("'''''Mix'' at start'''",  '<strong><em>Mix</em> at start</strong>'),
+        ("'''Mix at ''end'''''",    '<strong>Mix at <em>end</em></strong>'),
+        ("''Mix at '''end'''''",    '<em>Mix at <strong>end</strong></em>'),
+        )
+    
+    def testTextFormating(self):
+        """ parser.wiki: text formating """
+        for test, expected in self._tests:
+            html = self.parse(self.text % test)
+            result = self.needle.search(html).group(1)
+            self.assertEqual(result, expected,
+                             'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+
+class CloseInlineTestCase(ParserTestCase):
+
+    def testCloseOneInline(self):
+        """ parser.wiki: close open inline tag when block close """
+        cases = (
+            # test, expected
+            ("text'''text\n", r"<p>text<strong>text\s*</strong></p>"),
+            ("text''text\n", r"<p>text<em>text\s*</em></p>"),
+            ("text__text\n", r"<p>text<span class=\"u\">text\s*</span></p>"),
+            ("text ''em '''em strong __em strong underline",
+             r"text <em>em <strong>em strong <span class=\"u\">em strong underline"
+             r"\s*</span></strong></em></p>"),
+            )
+        for test, expected in cases:
+            needle = re.compile(expected)
+            result = self.parse(test)
+            self.assert_(needle.search(result),
+                         'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+
+class InlineCrossingTestCase(ParserTestCase):
+    """
+    This test case fail with current parser/formatter and should be fixed in 2.0
+    """
+    
+    def disabled_testInlineCrossing(self):
+        """ parser.wiki: prevent inline crossing <a><b></a></b> """
+
+        expected = ("<p><em>a<strong>ab</strong></em><strong>b</strong>\s*</p>")
+        test = "''a'''ab''b'''\n"
+        needle = re.compile(expected)
+        result = self.parse(test)
+        self.assert_(needle.search(result),
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+       
+
+class EscapeHTMLTestCase(ParserTestCase):
+    
+    def testEscapeInTT(self):
+        """ parser.wiki: escape html markup in `tt` """
+        test = 'text `<escape-me>` text\n'
+        self._test(test)
+
+    def testEscapeInTT2(self):
+        """ parser.wiki: escape html markup in {{{tt}}} """
+        test = 'text {{{<escape-me>}}} text\n'
+        self._test(test)
+
+    def testEscapeInPre(self):
+        """ parser.wiki: escape html markup in pre """
+        test = '''{{{
+<escape-me>
+}}}
+'''
+        self._test(test)
+        
+    def testEscapeInPreHashbang(self):
+        """ parser.wiki: escape html markup in pre with hashbang """
+        test = '''{{{#!
+<escape-me>
+}}}
+'''
+        self._test(test)
+        
+    def testEscapeInPythonCodeArea(self):
+        """ parser.wiki: escape html markup in python code area """
+        test = '''{{{#!python
+#<escape-me>
+}}}
+'''
+        self._test(test)
+
+    def testEscapeInGetTextMacro(self):
+        """ parser.wiki: escape html markup in GetText macro """
+        test = "text [[GetText(<escape-me>)]] text"
+        self._test(test)
+
+    def testEscapeInGetTextFormatted(self):
+        """ parser.wiki: escape html markup in getText formatted call """
+        test = self.request.getText('<escape-me>', formatted=1)
+        self._test(test)
+
+    def testEscapeInGetTextFormatedLink(self):
+        """ parser.wiki: escape html markup in getText formatted call with link """
+        test = self.request.getText('["<escape-me>"]', formatted=1)
+        self._test(test)
+
+    def testEscapeInGetTextUnFormatted(self):
+        """ parser.wiki: escape html markup in getText non formatted call """
+        test = self.request.getText('<escape-me>', formatted=0)
+        self._test(test)
+
+    def _test(self, test):
+        expected = r'&lt;escape-me&gt;'
+        result = self.parse(test)
+        self.assert_(re.search(expected, result),
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())         
+
+
+class EscapeWikiTableMarkupTestCase(ParserTestCase):
+
+    def testEscapeInTT(self):
+        """ parser.wiki: escape wiki table markup in `tt` """
+        test = 'text `||<tablewidth="80"> Table ||` text\n'
+        self.do(test)
+
+    def testEscapeInTT2(self):
+        """ parser.wiki: escape wiki table markup in {{{tt}}} """
+        test = 'text {{{||<tablewidth="80"> Table ||}}} text\n'
+        self.do(test)
+
+    def testEscapeInPre(self):
+        """ parser.wiki: escape wiki table  markup in pre """
+        test = '''{{{
+||<tablewidth="80"> Table ||
+}}}
+'''
+        self.do(test)
+        
+    def testEscapeInPreHashbang(self):
+        """ parser.wiki: escape wiki table  markup in pre with hashbang """
+        test = '''{{{#!
+||<tablewidth="80"> Table ||
+}}}
+'''
+        self.do(test)
+        
+    def testEscapeInPythonCodeArea(self):
+        """ parser.wiki: escape wiki table markup in python code area """
+        test = '''{{{#!python
+# ||<tablewidth="80"> Table ||
+}}}
+'''
+        self.do(test)
+
+    def do(self, test):
+        expected = r'&lt;tablewidth="80"&gt;'
+        result = self.parse(test)
+        self.assert_(re.search(expected, result),
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())         
+
+
+class RuleTestCase(ParserTestCase):
+    """ Test rules markup """
+
+    def testNotRule(self):
+        """ parser.wiki: --- is no rule """
+        result = self.parse('---')
+        expected = '---' # inside <p>
+        self.assert_(expected in result,
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+    def testStandardRule(self):
+        """ parser.wiki: ---- is standard rule """
+        result = self.parse('----')
+        expected = '<hr>'
+        self.assert_(expected in result,
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+    def testVariableRule(self):
+        """ parser.wiki: ----- rules with size """
+
+        for size in range(5, 11):
+            test = '-' * size         
+            result = self.parse(test)
+            expected = '<hr class="hr%d">' % (size - 4)
+            self.assert_(expected in result,
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+    def testLongRule(self):
+        """ parser.wiki: ------------ long rule shortened to hr6 """
+        test = '-' * 254        
+        result = self.parse(test)
+        expected = '<hr class="hr6">'
+        self.assert_(expected in result,
+                     'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+
+class BlockTestCase(ParserTestCase):
+    cases = (
+        # test, block start
+        ('----\n', '<hr'),
+        ('= Heading =\n', '<h2'),
+        ('{{{\nPre\n}}}\n', '<pre'),
+        ('{{{\n#!python\nPre\n}}}\n', '<div'),
+        ('|| Table ||', '<div'),
+        (' * unordered list\n', '<ul'),
+        (' 1. ordered list\n', '<ol'),
+        (' indented text\n', '<ul'),
+        )
+
+    def testParagraphBeforeBlock(self):
+        """ parser.wiki: paragraph closed before block element """
+        text = """XXX
+%s
+"""
+        for test, blockstart in self.cases:
+            # We dont test here formatter white space generation
+            expected = r'<p>XXX\s*</p>\n+%s' % blockstart
+            needle = re.compile(expected, re.MULTILINE)
+            result = self.parse(text % test)
+            match = needle.search(result)
+            self.assert_(match is not None,
+                         'Expected "%(expected)s" but got "%(result)s"' % locals())
+            
+    def testEmptyLineBeforeBlock(self):
+        """ parser.wiki: empty lines before block element ignored
+        
+        Empty lines separate paragraphs, but should be ignored if a block
+        element follow.
+
+        Currently an empty paragraph is created, which make no sense but
+        no real harm.
+        """
+        text = """XXX
+
+%s
+"""
+        for test, blockstart in self.cases:
+            expected = r'<p>XXX\s*</p>\n+%s' % blockstart
+            needle = re.compile(expected, re.MULTILINE)
+            result = self.parse(text % test)
+            match = needle.search(result)
+            self.assert_(match is not None,
+                         'Expected "%(expected)s" but got "%(result)s"' % locals())
+
+
--- a/MoinMoin/_tests/test_converter_text_html_text_x_moin.py	Sat Apr 08 17:58:40 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1140 +0,0 @@
-# -*- coding: utf-8 -*-
-"""
-MoinMoin - MoinMoin.text_html_text_x_moin Tests
-
-@copyright: 2005 by Bastian Blank, ThomasWaldmann
-@license: GNU GPL, see COPYING for details.
-"""
-
-import unittest
-from MoinMoin import _tests
-
-from cStringIO import StringIO
-from MoinMoin.converter import text_html_text_x_moin as converter
-from MoinMoin.parser.wiki import Parser
-from MoinMoin.formatter.text_gedit import Formatter
-from MoinMoin.request import Clock
-
-convert = converter.convert
-error = converter.ConvertError
-
-
-class BaseTests(unittest.TestCase):
-
-    def setUp(self):
-        self.cfg = _tests.TestConfig(self.request, bang_meta=True)
-        
-    def tearDown(self):
-        del self.cfg
-
-    def do_convert_real(self, func_args, successful=True):
-        try:
-            ret = convert(*func_args)
-        except error, e:
-            if successful:
-                self.fail("fails with parse error: %s" % e)
-            else:
-                return
-        if successful:
-            return ret
-        else:
-            self.fail("doesn't fail with parse error")
-
-
-class MinimalPage(object):
-    def __init__(self):
-        self.hilite_re = None
-        self.page_name = "testpage"
-
-
-class MinimalRequest(object):
-    # TODO: do we really need this class? no other test uses a request replacement.
-
-    def __init__(self, request):
-        self.request = request
-        self.clock = Clock()
-        
-        # This is broken - tests that need correct content_lang will fail
-        self.content_lang = None
-        self.current_lang = None
-        
-        self.form = {}
-        self._page_headings = {}
-        self.result = []
-
-    def getText(self, text, formatted=True):
-        return text
-
-    def write(self, text):
-        self.result.append(text)
-
-    def __getattr__(self, name):
-        return getattr(self.request, name)
-
-
-class ConvertBlockRepeatableTests(BaseTests):
-    def do(self, text, output):
-        text = text.lstrip('\n')
-        output = output.strip('\n')
-        request = MinimalRequest(self.request)
-        page = MinimalPage()
-        formatter = Formatter(request)
-        formatter.setPage(page)
-        Parser(text, request).format(formatter)
-        repeat = ''.join(request.result).strip('\n')
-        self.failUnlessEqual(repeat, output)
-        out = self.do_convert_real([request, page.page_name, repeat])
-        self.failUnlessEqual(text, out)
-
-    def testComment01(self):
-        test = ur"""
-##test
-"""
-        output = u"""<pre class="comment">\n##test</pre>"""
-        self.do(test, output)
-
-    def testComment02(self):
-        test = ur"""
-##test
-##test
-"""
-        output = u"""
-<pre class="comment">\n##test</pre>
-<pre class="comment">\n##test</pre>
-"""
-        self.do(test, output)
-
-    def testHeading01(self):
-        test = ur"""
-= test1 =
-
-"""
-        output = ur"""
-<h2>test1</h2>
-"""
-        self.do(test, output)
-
-    def testHeading02(self):
-        test = ur"""
-= test1 =
-
-== test2 ==
-
-"""
-        output = ur"""
-<h2>test1</h2>
-<h3>test2</h3>
-"""
-        self.do(test, output)
-
-    def testListSuccess01(self):
-        test = ur"""
- * test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess02(self):
-        test = ur"""
- 1. test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess03(self):
-        test = ur"""
- test:: test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess04(self):
-        test = ur"""
- * test
- * test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess05(self):
-        test = ur"""
- 1. test
- 1. test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-</li>
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess06(self):
-        test = ur"""
- test:: test
- test:: test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess07(self):
-        test = ur"""
- * test
-  
- * test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess08(self):
-        test = ur"""
- 1. test
-  
- 1. test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess09(self):
-        test = ur"""
- test:: test
-  
- test:: test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess10(self):
-        test = ur"""
- * test
-  * test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess11(self):
-        test = ur"""
- 1. test
-  1. test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess12(self):
-        test = ur"""
- test:: test
-  test:: test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess13(self):
-        test = ur"""
- * test
-  * test
- * test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-</li>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess14(self):
-        test = ur"""
- 1. test
-  1. test
- 1. test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-</li>
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess15(self):
-        test = ur"""
- test:: test
-  test:: test
- test:: test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-</dd>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess16(self):
-        test = ur"""
- * test
-
- 1. test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess17(self):
-        test = ur"""
- * test
-
- test:: test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess18(self):
-        test = ur"""
- 1. test
-
- * test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess19(self):
-        test = ur"""
- 1. test
-
- test:: test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-"""
-        self.do(test, output)
-
-    def testListSuccess20(self):
-        test = ur"""
- test:: test
-
- * test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess21(self):
-        test = ur"""
- test:: test
-
- 1. test
-
-"""
-        output = ur"""
-<dl>
-<dt>test</dt>
-<dd><p>test </p>
-</dd>
-</dl>
-<ol type="1">
-<li><p>test </p>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess23(self):
-        test = ur"""
- 1. test
-  * test
-
-"""
-        output = ur"""
-<ol type="1">
-<li><p>test </p>
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-</li>
-</ol>
-"""
-        self.do(test, output)
-
-    def testListSuccess26(self):
-        test = ur"""
- * test
-
-test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-<p>test </p>
-"""
-        self.do(test, output)
-
-    def testListSuccess28(self):
-        test = ur"""
- * test
-
- test
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-<p>test </p>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testListSuccess29(self):
-        test = ur"""
- * test
-  * test
- test
-"""
-        output = ur"""
-"""
-        self.do(test, output)
-
-    def testListSuccess30(self):
-        test = ur"""
- * test
-  * test
-  test
-"""
-        output = ur"""
-"""
-        self.do(test, output)
-
-    def testParagraph1(self):
-        test = ur"""
-test
-
-"""
-        output = ur"""
-<p>test </p>
-"""
-        self.do(test, output)
-
-    def testParagraph2(self):
-        test = ur"""
-test
-
-test
-
-"""
-        output = ur"""
-<p>test </p>
-<p>test </p>
-"""
-        self.do(test, output)
-
-    def testPreSuccess1(self):
-        test = ur"""
-{{{
-test
-}}}
-
-"""
-        output = ur"""
-<pre>
-test
-</pre>
-"""
-        self.do(test, output)
-
-    def testPreSuccess2(self):
-        test = ur"""
-{{{
-test
-test
-}}}
-
-"""
-        output = ur"""
-<pre>
-test
-test
-</pre>
-"""
-        self.do(test, output)
-
-    def testPreSuccess3(self):
-        test = ur"""
-{{{
-test
-
-test
-}}}
-
-"""
-        output = ur"""
-<pre>
-test
-
-test
-</pre>
-"""
-        self.do(test, output)
-
-    def testPreSuccess4(self):
-        test = ur"""
-{{{
- * test
-}}}
-
-"""
-        output = ur"""
-<pre>
- * test
-</pre>
-"""
-        self.do(test, output)
-
-    def testPreSuccess5(self):
-        test = ur"""
-{{{
-  }}}
-
-"""
-        output = ur"""
-<pre>
-  </pre>
-"""
-        self.do(test, output)
-
-    def testPreSuccess6(self):
-        test = ur"""
- * {{{
-test
-}}}
-
-"""
-        output = ur"""
-<ul>
-<li>
-<pre>
-test
-</pre>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testPreSuccess7(self):
-        test = ur"""
- * {{{
-   test
-   }}}
-
-"""
-        output = ur"""
-<ul>
-<li>
-<pre>
-   test
-   </pre>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testPreSuccess8(self):
-        test = ur"""
- * test
- {{{
-test
-}}}
-
-"""
-        output = ur"""
-<ul>
-<li><p>test 
-</p>
-<pre>
-test
-</pre>
-</li>
-</ul>
-"""
-        self.do(test, output)
-
-    def testPreSuccess9(self):
-        test = ur"""
- * test
-
-{{{
-test
-}}}
-
-"""
-        output = ur"""
-<ul>
-<li><p>test </p>
-</li>
-</ul>
-
-<pre>
-test
-</pre>
-"""
-        self.do(test, output)
-
-    def testRule1(self):
-        test = ur"""
-----
-
-"""
-        output = ur"""
-<hr/>
-"""
-        self.do(test, output)
-
-    def testTable01(self):
-        test = ur"""
-|| ||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td>
-<p> </p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-    def testTable02(self):
-        test = ur"""
-||test||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td>
-<p>test</p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-    def testTable03(self):
-        test = ur"""
-||test||test||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td>
-<p>test</p>
-</td>
-<td>
-<p>test</p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-    def testTable04(self):
-        test = ur"""
-||test||
-||test||test||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td>
-<p>test</p>
-</td>
-</tr>
-<tr>
-<td>
-<p>test</p>
-</td>
-<td>
-<p>test</p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-    def testTable05(self):
-        test = ur"""
-||||test||
-||test||test||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td colspan="2" style="text-align: center;">
-<p>test</p>
-</td>
-</tr>
-<tr>
-<td>
-<p>test</p>
-</td>
-<td>
-<p>test</p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-    def testTable06(self):
-        test = ur"""
-||||test||test||
-||test||||test||
-
-"""
-        output = ur"""
-<div>
-<table>
-<tr>
-<td colspan="2" style="text-align: center;">
-<p>test</p>
-</td>
-<td>
-<p>test</p>
-</td>
-</tr>
-<tr>
-<td>
-<p>test</p>
-</td>
-<td colspan="2" style="text-align: center;">
-<p>test</p>
-</td>
-</tr>
-</table>
-</div>
-"""
-        self.do(test, output)
-
-class ConvertInlineFormatRepeatableTests(BaseTests):
-    def do(self, text, output):
-        text = text.lstrip('\n')
-        output = output.strip('\n')
-        output = "<p>%s </p>" % output
-        request = MinimalRequest(self.request)
-        page = MinimalPage()
-        formatter = Formatter(request)
-        formatter.setPage(page)
-        Parser(text, request).format(formatter)
-        repeat = ''.join(request.result).strip('\n')
-        self.failUnlessEqual(repeat, output)
-        out = self.do_convert_real([request, page.page_name, repeat])
-        out = out.rstrip('\n')
-        self.failUnlessEqual(text, out)
-
-    def testEmphasis01(self):
-        test = ur"''test''"
-        output = ur"<em>test</em>"
-        self.do(test, output)
-
-    def testEmphasis02(self):
-        test = ur"'''test'''"
-        output = ur"<strong>test</strong>"
-        self.do(test, output)
-
-    def testEmphasis03(self):
-        test = ur"'''''test'''''"
-        output = ur"<em><strong>test</strong></em>"
-        self.do(test, output)
-
-    def testEmphasis04(self):
-        test = ur"''test'''test'''''"
-        output = ur"<em>test<strong>test</strong></em>"
-        self.do(test, output)
-
-    def testEmphasis05(self):
-        test = ur"'''test''test'''''"
-        output = ur"<strong>test<em>test</em></strong>"
-        self.do(test, output)
-
-    def testEmphasis06(self):
-        test = ur"''test'''test'''test''"
-        output = ur"<em>test<strong>test</strong>test</em>"
-        self.do(test, output)
-
-    def testEmphasis07(self):
-        test = ur"'''test''test''test'''"
-        output = ur"<strong>test<em>test</em>test</strong>"
-        self.do(test, output)
-
-    def testEmphasis08(self):
-        test = ur"''test'''''test'''"
-        output = ur"<em>test</em><strong>test</strong>"
-        self.do(test, output)
-
-    def testEmphasis09(self):
-        test = ur"'''test'''''test''"
-        output = ur"<strong>test</strong><em>test</em>"
-        self.do(test, output)
-
-    def testEmphasis10(self):
-        test = ur"'''''test''test'''"
-        output = ur"<strong><em>test</em>test</strong>"
-        self.do(test, output)
-
-    def testEmphasis11(self):
-        test = ur"'''''test'''test''"
-        output = ur"<em><strong>test</strong>test</em>"
-        self.do(test, output)
-
-    def testFormatBig01(self):
-        test = ur"~+test+~"
-        output = ur"<big>test</big>"
-        self.do(test, output)
-
-    def testFormatSmall01(self):
-        test = ur"~-test-~"
-        output = ur"<small>test</small>"
-        self.do(test, output)
-
-    def testFormatStrike01(self):
-        test = ur"--(test)--"
-        output = ur"<strike>test</strike>"
-        self.do(test, output)
-
-    def testFormatSub01(self):
-        test = ur",,test,,"
-        output = ur"<sub>test</sub>"
-        self.do(test, output)
-
-    def testFormatSup01(self):
-        test = ur"^test^"
-        output = ur"<sup>test</sup>"
-        self.do(test, output)
-
-    def testFormatUnderline01(self):
-        test = ur"__test__"
-        output = ur"<u>test</u>"
-        self.do(test, output)
-
-    def testPre01(self):
-        test = ur"{{{test}}}"
-        output = ur"<tt>test</tt>"
-        self.do(test, output)
-
-    def testWhitespace01(self):
-        test = ur"''test '''test'''''"
-        output = ur"<em>test <strong>test</strong></em>"
-        self.do(test, output)
-
-class ConvertInlineItemRepeatableTests(BaseTests):
-    def do(self, text, output):
-        text = text.lstrip('\n')
-        output = output.strip('\n')
-        output = "<p>%s </p>" % output
-        request = MinimalRequest(self.request)
-        page = MinimalPage()
-        formatter = Formatter(request)
-        formatter.setPage(page)
-        Parser(text, request).format(formatter)
-        repeat = ''.join(request.result).strip('\n')
-        self.failUnlessEqual(repeat, output)
-        out = self.do_convert_real([request, page.page_name, repeat])
-        out = out.rstrip('\n')
-        self.failUnlessEqual(text, out)
-
-    def testWikiWord01(self):
-        test = ur"WikiWord"
-        output = ur"""<a class="nonexistent" href="./WikiWord">WikiWord</a>"""
-        self.do(test, output)
-
-    def testNoWikiWord01(self):
-        test = ur"!WikiWord"
-        output = ur"WikiWord"
-        self.do(test, output)
-
-    def testSmiley01(self):
-        test = ur":-)"
-        output = ur"""<img src="/wiki/modern/img/smile.png" alt=":-)" height="15" width="15">"""
-        self.do(test, output)
-
-class StripTests(unittest.TestCase):
-    def do(self, cls, text, output):
-        tree = converter.parse(text)
-        cls().do(tree)
-        out = StringIO()
-        try:
-            import xml.dom.ext
-        except ImportError:
-            raise _tests.TestSkiped('xml.dom.ext module is not available')
-        xml.dom.ext.Print(tree, out)
-        self.failUnlessEqual("<?xml version='1.0' encoding='UTF-8'?>%s" % output, out.getvalue().decode("utf-8"))
-
-class StripBreakTests(StripTests):
-    def do(self, text, output):
-        super(StripBreakTests, self).do(converter.strip_break, text, output)
-
-class StripWhitespaceTests(StripTests):
-    def do(self, text, output):
-        super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
-
-    def test1(self):
-        test = ur"""
-<t/>
-"""
-        output = ur"""<t/>"""
-        self.do(test, output)
-
-    def test2(self):
-        test = ur"""
-<t>
-  <z/>
-</t>
-"""
-        output = ur"""<t><z/></t>"""
-        self.do(test, output)
-
-    def test3(self):
-        test = ur"""
-<t>
-  <z>test</z>
-</t>
-"""
-        output = ur"""<t><z>test</z></t>"""
-        self.do(test, output)
-
-    def test3(self):
-        test = ur"""<p>&nbsp;</p>"""
-        output = ur""""""
-        self.do(test, output)
-
-    def test4(self):
-        test = ur"""<p>test </p>"""
-        output = ur"""<p>test</p>"""
-        self.do(test, output)
-
-class ConvertBrokenBrowserTests(BaseTests):
-    def do(self, text, output):
-        text = text.strip('\n')
-        output = output.lstrip('\n')
-        request = MinimalRequest(self.request)
-        page = MinimalPage()
-        out = self.do_convert_real([request, page.page_name, text])
-        self.failUnlessEqual(output, out)
-
-    def testList01(self):
-        test = ur"""
-<ul>
-<li>test</li>
-<ul>
-<li>test</li>
-</ul>
-<li>test</li>
-</ul>
-"""
-        output = ur"""
- * test
-  * test
- * test
-
-"""
-        self.do(test, output)
-
-if __name__ == '__main__':
-    unittest.main()
-
--- a/MoinMoin/_tests/test_formatter.py	Sat Apr 08 17:58:40 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - MoinMoin.formatter.* Tests
-
-    @copyright: 2005 by MoinMoin:AlexanderSchremmer
-    @license: GNU GPL, see COPYING for details.
-"""
-
-from unittest import TestCase
-import re
-from StringIO import StringIO
-from MoinMoin._tests import TestConfig
-from MoinMoin.Page import Page
-from MoinMoin.parser.wiki import Parser
-from MoinMoin import wikiutil
-
-
-class FormatterTestCase(TestCase):
-    def testSyntaxReference(self):
-        formatters = wikiutil.getPlugins("formatter", self.request.cfg)
-        for f_name in formatters:
-            #if f_name in ('dom_xml', ):
-            #    continue
-            
-            try:
-                formatter = wikiutil.importPlugin(self.request.cfg, "formatter", f_name, "Formatter")
-            except wikiutil.PluginAttributeError:
-                pass
-            else:
-                print "Formatting using %r" % formatter
-                self.formatPage("SyntaxReference", formatter)
-                print "Done."
-
-    def formatPage(self, pagename, formatter):
-        """Parse a page. Should not raise an exception if the API of the
-        formatter is correct.
-        """
-
-        self.request.reset()
-        page = Page(self.request, pagename, formatter=formatter)
-        self.request.formatter = page.formatter = formatter(self.request)
-        #page.formatter.setPage(page)
-        #page.hilite_re = None
-        
-        return self.request.redirectedOutput(page.send_page, self.request)
-    
\ No newline at end of file
--- a/MoinMoin/_tests/test_parser_wiki.py	Sat Apr 08 17:58:40 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,452 +0,0 @@
-# -*- coding: iso-8859-1 -*-
-"""
-    MoinMoin - MoinMoin.parser.wiki Tests
-
-    TODO: these are actually parser+formatter tests. We should have
-    parser only tests here.
-
-    @copyright: 2003-2004 by Jürgen Hermann <jh@web.de>
-    @license: GNU GPL, see COPYING for details.
-"""
-
-import unittest
-import re
-from StringIO import StringIO
-from MoinMoin._tests import TestConfig
-from MoinMoin.Page import Page
-from MoinMoin.parser.wiki import Parser
-
-
-class ParserTestCase(unittest.TestCase):
-    """ Helper class that provide a parsing method """
-    
-    def parse(self, body):
-        """Parse body and return html
-
-        Create a page with body, then parse it and format using html formatter
-        """
-        assert body is not None
-        self.request.reset()
-        page = Page(self.request, 'ThisPageDoesNotExistsAndWillNeverBeReally')
-        page.set_raw_body(body)
-        from MoinMoin.formatter.text_html import Formatter
-        page.formatter = Formatter(self.request)
-        self.request.formatter = page.formatter
-        page.formatter.setPage(page)
-        page.hilite_re = None
-        
-        output = StringIO()
-        saved_write = self.request.write
-        self.request.write = output.write
-        try:
-            Parser(body, self.request).format(page.formatter)
-        finally:
-            self.request.write = saved_write
-        return output.getvalue()
-
-
-class ParagraphsTestCase(ParserTestCase):
-    """ Test paragraphs creating
-
-    All tests ignoring white space in output
-    """
-
-    def testFirstParagraph(self):
-         """ parser.wiki: first paragraph should be in <p> """
-         result = self.parse('First')
-         expected = re.compile(r'<p>\s*First\s*</p>')
-         self.assert_(expected.search(result),
-                      '"%s" not in "%s"' % (expected.pattern, result))
-
-    def testEmptyLineBetweenParagraphs(self):
-        """ parser.wiki: empty line separates paragraphs """
-        result = self.parse('First\n\nSecond')
-        expected = re.compile(r'<p>\s*Second\s*</p>')
-        self.assert_(expected.search(result),
-                     '"%s" not in "%s"' % (expected.pattern, result))
-        
-    def testParagraphAfterBlockMarkup(self):
-        """ parser.wiki: create paragraph after block markup """
-
-        markup = (
-            '----\n',
-            '[[en]]\n',
-            '|| table ||\n',
-            '= heading 1 =\n',
-            '== heading 2 ==\n',
-            '=== heading 3 ===\n',
-            '==== heading 4 ====\n',
-            '===== heading 5 =====\n',
-            )
-        for item in markup:
-            text = item + 'Paragraph'
-            result = self.parse(text)
-            expected = re.compile(r'<p.*?>\s*Paragraph\s*</p>')
-            self.assert_(expected.search(result),
-                         '"%s" not in "%s"' % (expected.pattern, result))
-
-
-class HeadingsTestCase(ParserTestCase):
-    """ Test various heading problems """
-
-    def setUp(self):
-        """ Require show_section_numbers = 0 to workaround counter
-        global state saved in request.
-        """
-        self.config = TestConfig(self.request, show_section_numbers=0)
-    
-    def tearDown(self):
-        del self.config
-
-    def testIgnoreWhiteSpaceAroundHeadingText(self):
-        """ parser.wiki: ignore white space around heading text
-
-        See bug: TableOfContentsBreakOnExtraSpaces.
-
-        Does not test mapping of '=' to h number, or valid html markup.
-        """
-        tests = (
-            '=  head =\n', # leading
-            '= head  =\n', # trailing
-            '=  head  =\n' # both
-                 )
-        expected = self.parse('= head =')
-        for test in tests:            
-            result = self.parse(test)
-            self.assertEqual(result, expected,
-                'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-
-class TOCTestCase(ParserTestCase):
-
-    def setUp(self):
-        """ Require show_section_numbers = 0 to workaround counter
-        global state saved in request.
-        """
-        self.config = TestConfig(self.request, show_section_numbers=0)
-    
-    def tearDown(self):
-        del self.config
-
-    def testHeadingWithWhiteSpace(self):
-        """ parser.wiki: TOC links to headings with white space
-        
-        See bug: TableOfContentsBreakOnExtraSpaces.
-
-        Does not test TOC or heading formating, just verify that spaces
-        around heading text does not matter.
-        """
-        standard = """
-[[TableOfContents]]
-= heading =
-Text
-"""
-        withWhitespace = """
-[[TableOfContents]]
-=   heading   =
-Text
-"""
-        expected = self.parse(standard)
-        result = self.parse(withWhitespace)
-        self.assertEqual(result, expected,
-            'Expected "%(expected)s" but got "%(result)s"' % locals())
-        
-
-class DateTimeMacroTestCase(ParserTestCase):
-   """ Test DateTime macro
-
-   Might fail due to libc problems, therefore the fail message warn
-   about this.
-
-   TODO: when this test fail, does it mean that moin code fail on that
-   machine? - can we fix this?
-   """
-   
-   text = 'XXX %s XXX'
-   needle = re.compile(text %  r'(.+)')
-   _tests = (
-       # test                                   expected
-       ('[[DateTime(1970-01-06T00:00:00)]]',   '1970-01-06 00:00:00'),
-       ('[[DateTime(259200)]]',                '1970-01-04 00:00:00'),
-       ('[[DateTime(2003-03-03T03:03:03)]]',   '2003-03-03 03:03:03'),
-       ('[[DateTime(2000-01-01T00:00:00Z)]]',  '2000-01-01 00:00:00'),
-       ('[[Date(2002-02-02T01:02:03Z)]]',      '2002-02-02'),
-       )
-
-   def setUp(self):
-       """ Require default date and time format config values """
-       self.config = TestConfig(self.request,
-                                defaults=('date_fmt', 'datetime_fmt'))
-   
-   def tearDown(self):
-       del self.config
-   
-   def testDateTimeMacro(self):
-       """ parser.wiki: DateTime macro """
-       note = """
-   
-   If this fails, it is likely a problem in your python / libc,
-   not in moin.  See also:
-   <http://sourceforge.net/tracker/index.php?func=detail&
-       aid=902172&group_id=5470&atid=105470>"""
-
-       for test, expected in self._tests:
-           html = self.parse(self.text % test)
-           result = self.needle.search(html).group(1)
-           self.assertEqual(result, expected,
-               'Expected "%(expected)s" but got "%(result)s"; %(note)s' % locals())
-                       
-
-class TextFormatingTestCase(ParserTestCase):
-    """ Test wiki markup """
-    
-    text = 'XXX %s XXX'
-    needle = re.compile(text %  r'(.+)')
-    _tests = (
-        # test,                     expected
-        ('no format',               'no format'),
-        ("''em''",                  '<em>em</em>'),
-        ("'''bold'''",              '<strong>bold</strong>'),
-        ("__underline__",           '<span class="u">underline</span>'),
-        ("'''''Mix''' at start''",  '<em><strong>Mix</strong> at start</em>'),
-        ("'''''Mix'' at start'''",  '<strong><em>Mix</em> at start</strong>'),
-        ("'''Mix at ''end'''''",    '<strong>Mix at <em>end</em></strong>'),
-        ("''Mix at '''end'''''",    '<em>Mix at <strong>end</strong></em>'),
-        )
-    
-    def testTextFormating(self):
-        """ parser.wiki: text formating """
-        for test, expected in self._tests:
-            html = self.parse(self.text % test)
-            result = self.needle.search(html).group(1)
-            self.assertEqual(result, expected,
-                             'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-
-class CloseInlineTestCase(ParserTestCase):
-
-    def testCloseOneInline(self):
-        """ parser.wiki: close open inline tag when block close """
-        cases = (
-            # test, expected
-            ("text'''text\n", r"<p>text<strong>text\s*</strong></p>"),
-            ("text''text\n", r"<p>text<em>text\s*</em></p>"),
-            ("text__text\n", r"<p>text<span class=\"u\">text\s*</span></p>"),
-            ("text ''em '''em strong __em strong underline",
-             r"text <em>em <strong>em strong <span class=\"u\">em strong underline"
-             r"\s*</span></strong></em></p>"),
-            )
-        for test, expected in cases:
-            needle = re.compile(expected)
-            result = self.parse(test)
-            self.assert_(needle.search(result),
-                         'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-
-class InlineCrossingTestCase(ParserTestCase):
-    """
-    This test case fail with current parser/formatter and should be fixed in 2.0
-    """
-    
-    def disabled_testInlineCrossing(self):
-        """ parser.wiki: prevent inline crossing <a><b></a></b> """
-
-        expected = ("<p><em>a<strong>ab</strong></em><strong>b</strong>\s*</p>")
-        test = "''a'''ab''b'''\n"
-        needle = re.compile(expected)
-        result = self.parse(test)
-        self.assert_(needle.search(result),
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
-       
-
-class EscapeHTMLTestCase(ParserTestCase):
-    
-    def testEscapeInTT(self):
-        """ parser.wiki: escape html markup in `tt` """
-        test = 'text `<escape-me>` text\n'
-        self._test(test)
-
-    def testEscapeInTT2(self):
-        """ parser.wiki: escape html markup in {{{tt}}} """
-        test = 'text {{{<escape-me>}}} text\n'
-        self._test(test)
-
-    def testEscapeInPre(self):
-        """ parser.wiki: escape html markup in pre """
-        test = '''{{{
-<escape-me>
-}}}
-'''
-        self._test(test)
-        
-    def testEscapeInPreHashbang(self):
-        """ parser.wiki: escape html markup in pre with hashbang """
-        test = '''{{{#!
-<escape-me>
-}}}
-'''
-        self._test(test)
-        
-    def testEscapeInPythonCodeArea(self):
-        """ parser.wiki: escape html markup in python code area """
-        test = '''{{{#!python
-#<escape-me>
-}}}
-'''
-        self._test(test)
-
-    def testEscapeInGetTextMacro(self):
-        """ parser.wiki: escape html markup in GetText macro """
-        test = "text [[GetText(<escape-me>)]] text"
-        self._test(test)
-
-    def testEscapeInGetTextFormatted(self):
-        """ parser.wiki: escape html markup in getText formatted call """
-        test = self.request.getText('<escape-me>', formatted=1)
-        self._test(test)
-
-    def testEscapeInGetTextFormatedLink(self):
-        """ parser.wiki: escape html markup in getText formatted call with link """
-        test = self.request.getText('["<escape-me>"]', formatted=1)
-        self._test(test)
-
-    def testEscapeInGetTextUnFormatted(self):
-        """ parser.wiki: escape html markup in getText non formatted call """
-        test = self.request.getText('<escape-me>', formatted=0)
-        self._test(test)
-
-    def _test(self, test):
-        expected = r'&lt;escape-me&gt;'
-        result = self.parse(test)
-        self.assert_(re.search(expected, result),
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())         
-
-
-class EscapeWikiTableMarkupTestCase(ParserTestCase):
-
-    def testEscapeInTT(self):
-        """ parser.wiki: escape wiki table markup in `tt` """
-        test = 'text `||<tablewidth="80"> Table ||` text\n'
-        self.do(test)
-
-    def testEscapeInTT2(self):
-        """ parser.wiki: escape wiki table markup in {{{tt}}} """
-        test = 'text {{{||<tablewidth="80"> Table ||}}} text\n'
-        self.do(test)
-
-    def testEscapeInPre(self):
-        """ parser.wiki: escape wiki table  markup in pre """
-        test = '''{{{
-||<tablewidth="80"> Table ||
-}}}
-'''
-        self.do(test)
-        
-    def testEscapeInPreHashbang(self):
-        """ parser.wiki: escape wiki table  markup in pre with hashbang """
-        test = '''{{{#!
-||<tablewidth="80"> Table ||
-}}}
-'''
-        self.do(test)
-        
-    def testEscapeInPythonCodeArea(self):
-        """ parser.wiki: escape wiki table markup in python code area """
-        test = '''{{{#!python
-# ||<tablewidth="80"> Table ||
-}}}
-'''
-        self.do(test)
-
-    def do(self, test):
-        expected = r'&lt;tablewidth="80"&gt;'
-        result = self.parse(test)
-        self.assert_(re.search(expected, result),
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())         
-
-
-class RuleTestCase(ParserTestCase):
-    """ Test rules markup """
-
-    def testNotRule(self):
-        """ parser.wiki: --- is no rule """
-        result = self.parse('---')
-        expected = '---' # inside <p>
-        self.assert_(expected in result,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-    def testStandardRule(self):
-        """ parser.wiki: ---- is standard rule """
-        result = self.parse('----')
-        expected = '<hr>'
-        self.assert_(expected in result,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-    def testVariableRule(self):
-        """ parser.wiki: ----- rules with size """
-
-        for size in range(5, 11):
-            test = '-' * size         
-            result = self.parse(test)
-            expected = '<hr class="hr%d">' % (size - 4)
-            self.assert_(expected in result,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-    def testLongRule(self):
-        """ parser.wiki: ------------ long rule shortened to hr6 """
-        test = '-' * 254        
-        result = self.parse(test)
-        expected = '<hr class="hr6">'
-        self.assert_(expected in result,
-                     'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-
-class BlockTestCase(ParserTestCase):
-    cases = (
-        # test, block start
-        ('----\n', '<hr'),
-        ('= Heading =\n', '<h2'),
-        ('{{{\nPre\n}}}\n', '<pre'),
-        ('{{{\n#!python\nPre\n}}}\n', '<div'),
-        ('|| Table ||', '<div'),
-        (' * unordered list\n', '<ul'),
-        (' 1. ordered list\n', '<ol'),
-        (' indented text\n', '<ul'),
-        )
-
-    def testParagraphBeforeBlock(self):
-        """ parser.wiki: paragraph closed before block element """
-        text = """XXX
-%s
-"""
-        for test, blockstart in self.cases:
-            # We dont test here formatter white space generation
-            expected = r'<p>XXX\s*</p>\n+%s' % blockstart
-            needle = re.compile(expected, re.MULTILINE)
-            result = self.parse(text % test)
-            match = needle.search(result)
-            self.assert_(match is not None,
-                         'Expected "%(expected)s" but got "%(result)s"' % locals())
-            
-    def testEmptyLineBeforeBlock(self):
-        """ parser.wiki: empty lines before block element ignored
-        
-        Empty lines separate paragraphs, but should be ignored if a block
-        element follow.
-
-        Currently an empty paragraph is created, which make no sense but
-        no real harm.
-        """
-        text = """XXX
-
-%s
-"""
-        for test, blockstart in self.cases:
-            expected = r'<p>XXX\s*</p>\n+%s' % blockstart
-            needle = re.compile(expected, re.MULTILINE)
-            result = self.parse(text % test)
-            match = needle.search(result)
-            self.assert_(match is not None,
-                         'Expected "%(expected)s" but got "%(result)s"' % locals())
-
-
--- a/MoinMoin/_tests/test_util_web.py	Sat Apr 08 17:58:40 2006 +0000
+++ b/MoinMoin/_tests/test_util_web.py	Sat Apr 08 18:24:40 2006 +0000
@@ -64,7 +64,7 @@
     def setUp(self):
         html._SORT_ATTRS = 1
         self.expected = (
-        u'<select name="test">'
+        u'<select name="test" size="1">'
         u'<option value="one">one</option>'
         u'<option value="two">two</option>'
         u'<option value="simple">simple</option>'
@@ -75,21 +75,21 @@
     def testMakeSelectNoSelection(self):
         """util.web: creating html select with no selection"""
         expected = self.expected
-        result = unicode(web.makeSelection('test', self.values))
+        result = unicode(web.makeSelection('test', self.values, size=1))
         self.assertEqual(result, expected,
                          'Expected "%(expected)s" but got "%(result)s"' % locals())
 
-    def testMakeSelectNoSelection(self):
+    def testMakeSelectNoSelection2(self):
         """util.web: creating html select with non existing selection"""
         expected = self.expected
-        result = unicode(web.makeSelection('test', self.values, 'three'))
+        result = unicode(web.makeSelection('test', self.values, 'three', size=1))
         self.assertEqual(result, expected,
                          'Expected "%(expected)s" but got "%(result)s"' % locals())
         
     def testMakeSelectWithSelectedItem(self):
         """util.web: creating html select with selected item"""
         expected = self.expected.replace('value="two"', 'selected value="two"')
-        result = unicode(web.makeSelection('test', self.values, 'two'))
+        result = unicode(web.makeSelection('test', self.values, 'two', size=1))
         self.assertEqual(result, expected,
                          'Expected "%(expected)s" but got "%(result)s"' % locals())
 
--- a/MoinMoin/_tests/test_wikiutil.py	Sat Apr 08 17:58:40 2006 +0000
+++ b/MoinMoin/_tests/test_wikiutil.py	Sat Apr 08 18:24:40 2006 +0000
@@ -20,7 +20,6 @@
         'TitleIndex',
         )
     notSystemPages = (
-        'FrontPage',
         'NoSuchPageYetAndWillNeverBe',
         )
 
--- a/MoinMoin/formatter/text_html.py	Sat Apr 08 17:58:40 2006 +0000
+++ b/MoinMoin/formatter/text_html.py	Sat Apr 08 18:24:40 2006 +0000
@@ -1273,7 +1273,7 @@
                 pass
         else:
             result['style'] = st
-        self.request.log("_checkTableAttr returns %r" % result)
+        #self.request.log("_checkTableAttr returns %r" % result)
         return result
 
 
--- a/docs/CHANGES	Sat Apr 08 17:58:40 2006 +0000
+++ b/docs/CHANGES	Sat Apr 08 18:24:40 2006 +0000
@@ -28,11 +28,6 @@
     and improving it and after having made a backup with some other, proven
     method. USE BOTH ON YOUR OWN RISK!
 
-  * Many (50+) tests are currently failing because they are too restrictive
-    and do not match the (output of the) code they should test.
-    If you want to compare, I included the output of this test run:
-    $ make test >tests/make_test.out
-
 Version 1.5.3-current:
   New Features:
     * Modified SystemInfo macro to give human readable units and disk usage
@@ -62,6 +57,11 @@
       to the previous page without saving preferences.
     * Removed formatter.url "attrs" keyword arg that took premade html, we use
       separate kw args per attribute now.
+    * Moved broken tests to MoinMoin/_tests/broken (= disabling them).
+      All "active" tests run ok now.
+      If you want to compare, I included the output of this test run:
+      $ make test >tests/make_test.out
+
  
 Version 1.5.3-rc1:
 
--- a/tests/make_test.out	Sat Apr 08 17:58:40 2006 +0000
+++ b/tests/make_test.out	Sat Apr 08 18:24:40 2006 +0000
@@ -1,88 +1,10 @@
 removing old wiki ...
 copying data ...
 untaring underlay ...
-testComment01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testComment02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testHeading01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testHeading02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess07 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess08 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess09 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess10 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess11 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess12 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess13 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess14 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess15 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess16 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess17 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess18 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess19 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess20 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess21 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess23 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess26 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess28 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess29 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testListSuccess30 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testParagraph1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testParagraph2 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess2 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess3 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess4 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess5 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess6 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess7 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess8 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testPreSuccess9 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testRule1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testTable06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests) ... FAIL
-testList01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBrokenBrowserTests) ... ok
-testEmphasis01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis07 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis08 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis09 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis10 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testEmphasis11 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatBig01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatSmall01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatStrike01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatSub01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatSup01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testFormatUnderline01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testPre01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testWhitespace01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests) ... FAIL
-testNoWikiWord01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests) ... FAIL
-testSmiley01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests) ... FAIL
-testWikiWord01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests) ... FAIL
-test1 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests) ... ERROR
-test2 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests) ... ERROR
-test3 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests) ... ERROR
-test4 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests) ... ERROR
 error: access error like a dict ... ok
 error: create with encoded string ... ok
 error: create with any object ... ok
 error: create with unicode ... ok
-testSyntaxReference (MoinMoin._tests.test_formatter.FormatterTestCase) ... Formatting using <class MoinMoin.formatter.dom_xml.Formatter at 0x55bbdbfc>
-[('xml', {}), ('ul', {}), ('li', {}), ('p', {}), ('attachment', {'href': u'filename.txt'})]
-ERROR
 testQuoting (MoinMoin._tests.test_packages.QuotingTestCase) ... ok
 testBasicPackageThings (MoinMoin._tests.test_packages.UnsafePackageTestcase) ... ok
 Page: page.exists() finds existing pages only ... ok
@@ -91,34 +13,6 @@
 PageEditor: expand @MAILTO@ ... ok
 PageEditor: expand user variables ... ok
 PageEditor: expand general variables ... ok
-parser.wiki: empty lines before block element ignored ... FAIL
-parser.wiki: paragraph closed before block element ... FAIL
-parser.wiki: close open inline tag when block close ... FAIL
-parser.wiki: DateTime macro ... ok
-parser.wiki: escape html markup in getText formatted call with link ... ok
-parser.wiki: escape html markup in getText formatted call ... ok
-parser.wiki: escape html markup in GetText macro ... ok
-parser.wiki: escape html markup in getText non formatted call ... ok
-parser.wiki: escape html markup in pre ... ok
-parser.wiki: escape html markup in pre with hashbang ... ok
-parser.wiki: escape html markup in python code area ... ok
-parser.wiki: escape html markup in `tt` ... ok
-parser.wiki: escape html markup in {{{tt}}} ... ok
-parser.wiki: escape wiki table  markup in pre ... ok
-parser.wiki: escape wiki table  markup in pre with hashbang ... ok
-parser.wiki: escape wiki table markup in python code area ... ok
-parser.wiki: escape wiki table markup in `tt` ... ok
-parser.wiki: escape wiki table markup in {{{tt}}} ... ok
-parser.wiki: ignore white space around heading text ... FAIL
-parser.wiki: empty line separates paragraphs ... FAIL
-parser.wiki: first paragraph should be in <p> ... FAIL
-parser.wiki: create paragraph after block markup ... ok
-parser.wiki: ------------ long rule shortened to hr6 ... FAIL
-parser.wiki: --- is no rule ... ok
-parser.wiki: ---- is standard rule ... FAIL
-parser.wiki: ----- rules with size ... FAIL
-parser.wiki: TOC links to headings with white space ... ok
-parser.wiki: text formating ... ok
 pysupport: import existing wiki plugin ... ok
 pysupport: import name from existing module ... ok
 pysupport: import nonexistent attritbue raises AttributeError ... ok
@@ -165,8 +59,9 @@
 util.web: make query sting from argument ... ok
 util.web: make query sting from argument and keywords ... ok
 util.web: make query sting from keywords ... ok
-util.web: creating html select with non existing selection ... FAIL
-util.web: creating html select with selected item ... FAIL
+util.web: creating html select with no selection ... ok
+util.web: creating html select with non existing selection ... ok
+util.web: creating html select with selected item ... ok
 widget.html: append to and extend composite element ... ok
 widget.html: creating html widgets ... ok
 widegt.html: invalid attributes raises exception ... ok
@@ -196,1048 +91,12 @@
 wikidicts: initFromText: ignore non first level items ... ok
 wikidicts: initFromText: strip whitespace around items ... ok
 wikimacro: trivial macro works ... ok
-wikiutil: good system page names accepted, bad rejected ... FAIL
+wikiutil: good system page names accepted, bad rejected ... ok
 wikiutil: good template names accepted, bad rejected ... ok
 wikixml.marshal: create new marshal ... ok
 wikixml.marshal: setting marshal property ... ok
 
-======================================================================
-ERROR: test1 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1081, in test1
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1074, in do
-    super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1058, in do
-    tree = converter.parse(text)
-TypeError: parse() takes exactly 2 arguments (1 given)
-
-======================================================================
-ERROR: test2 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1090, in test2
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1074, in do
-    super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1058, in do
-    tree = converter.parse(text)
-TypeError: parse() takes exactly 2 arguments (1 given)
-
-======================================================================
-ERROR: test3 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1104, in test3
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1074, in do
-    super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1058, in do
-    tree = converter.parse(text)
-TypeError: parse() takes exactly 2 arguments (1 given)
-
-======================================================================
-ERROR: test4 (MoinMoin._tests.test_converter_text_html_text_x_moin.StripWhitespaceTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1109, in test4
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1074, in do
-    super(StripWhitespaceTests, self).do(converter.strip_whitespace, text, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1058, in do
-    tree = converter.parse(text)
-TypeError: parse() takes exactly 2 arguments (1 given)
-
-======================================================================
-ERROR: testSyntaxReference (MoinMoin._tests.test_formatter.FormatterTestCase)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_formatter.py", line 31, in testSyntaxReference
-    self.formatPage("SyntaxReference", formatter)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_formatter.py", line 45, in formatPage
-    return self.request.redirectedOutput(page.send_page, self.request)
-  File "MoinMoin/script/../../MoinMoin/request.py", line 718, in redirectedOutput
-    function(*args, **kw)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/Page.py", line 1235, in send_page
-    start_line=pi_lines)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/Page.py", line 1314, in send_page_content
-    self.format(parser)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/Page.py", line 1331, in format
-    parser.format(self.formatter)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/parser/wiki.py", line 1033, in format
-    self.request.write(self.formatter.paragraph(0))
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/formatter/dom_xml.py", line 301, in paragraph
-    return self._set_tag('p', on)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/formatter/dom_xml.py", line 159, in _set_tag
-    raise ValueError, "<%s> expected <%s> given" % (last_tag, tag)
-ValueError: <attachment> expected <p> given
-
-======================================================================
-FAIL: testComment01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 94, in testComment01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre class="comment">##test</pre>' != u'<pre class="comment">\n##test</pre>'
-
-======================================================================
-FAIL: testComment02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 105, in testComment02
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre class="comment">##test</pre><pre class="comment">##test</pre>' != u'<pre class="comment">\n##test</pre>\n<pre class="comment">\n##test</pre>'
-
-======================================================================
-FAIL: testHeading01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 115, in testHeading01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 87, in do
-    self.failUnlessEqual(text, out)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'= test1 =\n\n' != u'= test1 =\n'
-
-======================================================================
-FAIL: testHeading02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 128, in testHeading02
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<h2>test1</h2><h3>test2</h3>' != u'<h2>test1</h2>\n<h3>test2</h3>'
-
-======================================================================
-FAIL: testListSuccess01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 141, in testListSuccess01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 154, in testListSuccess02
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p></li></ol>' != u'<ol type="1">\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 168, in testListSuccess03
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p></dd></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 184, in testListSuccess04
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li><li><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n</li>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 200, in testListSuccess05
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p></li><li><p class="line886">test </p></li></ol>' != u'<ol type="1">\n<li><p>test </p>\n</li>\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 218, in testListSuccess06
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p></dd><dt>test</dt><dd><p class="line886">test </p></dd></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess07 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 237, in testListSuccess07
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li><li class="gap"><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>\n<ul>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess08 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 256, in testListSuccess08
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p></li><li class="gap"><p class="line886">test </p></li></ol>' != u'<ol type="1">\n<li><p>test </p>\n</li>\n</ol>\n<ol type="1">\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess09 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 277, in testListSuccess09
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p></dd><dt>test</dt><dd><p class="line886">test </p></dd></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>\n<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess10 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 295, in testListSuccess10
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><ul><li><p class="line886">test </p></li></ul></ul>' != u'<ul>\n<li><p>test </p>\n<ul>\n<li><p>test </p>\n</li>\n</ul>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess11 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 313, in testListSuccess11
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p><ol type="1"><li><p class="line886">test </p></li></ol></ol>' != u'<ol type="1">\n<li><p>test </p>\n<ol type="1">\n<li><p>test </p>\n</li>\n</ol>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess12 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 333, in testListSuccess12
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p><dl><dt>test</dt><dd><p class="line886">test </p></dd></dl></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess13 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 354, in testListSuccess13
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><ul><li><p class="line886">test </p></li></ul></li><li><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n<ul>\n<li><p>test </p>\n</li>\n</ul>\n</li>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess14 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 375, in testListSuccess14
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p><ol type="1"><li><p class="line886">test </p></li></ol></li><li><p class="line886">test </p></li></ol>' != u'<ol type="1">\n<li><p>test </p>\n<ol type="1">\n<li><p>test </p>\n</li>\n</ol>\n</li>\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess15 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 399, in testListSuccess15
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p><dl><dt>test</dt><dd><p class="line886">test </p></dd></dl></dd><dt>test</dt><dd><p class="line886">test </p></dd></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>\n</dd>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess16 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 418, in testListSuccess16
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li><li class="gap"><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>\n<ol type="1">\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess17 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 438, in testListSuccess17
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li><dt>test</dt><dd><p class="line886">test </p></dd></ul>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>\n<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess18 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 457, in testListSuccess18
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p></li><li class="gap"><p class="line886">test </p></li></ol>' != u'<ol type="1">\n<li><p>test </p>\n</li>\n</ol>\n<ul>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess19 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 477, in testListSuccess19
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p></li><dt>test</dt><dd><p class="line886">test </p></dd></ol>' != u'<ol type="1">\n<li><p>test </p>\n</li>\n</ol>\n<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>'
-
-======================================================================
-FAIL: testListSuccess20 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 497, in testListSuccess20
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p></dd><li class="gap"><p class="line886">test </p></li></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>\n<ul>\n<li><p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess21 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 517, in testListSuccess21
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<dl><dt>test</dt><dd><p class="line886">test </p></dd><li class="gap"><p class="line886">test </p></li></dl>' != u'<dl>\n<dt>test</dt>\n<dd><p>test </p>\n</dd>\n</dl>\n<ol type="1">\n<li><p>test </p>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess23 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 535, in testListSuccess23
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ol type="1"><li><p class="line886">test </p><ul><li><p class="line886">test </p></li></ul></ol>' != u'<ol type="1">\n<li><p>test </p>\n<ul>\n<li><p>test </p>\n</li>\n</ul>\n</li>\n</ol>'
-
-======================================================================
-FAIL: testListSuccess26 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 551, in testListSuccess26
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li></ul><p class="line886">test </p>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>\n<p>test </p>'
-
-======================================================================
-FAIL: testListSuccess28 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 567, in testListSuccess28
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><p class="line886">test </p></li></ul>' != u'<ul>\n<li><p>test </p>\n<p>test </p>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testListSuccess29 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 577, in testListSuccess29
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><ul><li><p class="line886">test </p></li></ul><p class="line886">test </p></li></ul>' != u''
-
-======================================================================
-FAIL: testListSuccess30 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 587, in testListSuccess30
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><ul><li><p class="line886">test test </p></li></ul></ul>' != u''
-
-======================================================================
-FAIL: testParagraph1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 597, in testParagraph1
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line886">test </p>' != u'<p>test </p>'
-
-======================================================================
-FAIL: testParagraph2 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 610, in testParagraph2
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line886">test </p><p class="line886">test </p>' != u'<p>test </p>\n<p>test </p>'
-
-======================================================================
-FAIL: testPreSuccess1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 624, in testPreSuccess1
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre>test\n</pre>' != u'<pre>\ntest\n</pre>'
-
-======================================================================
-FAIL: testPreSuccess2 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 640, in testPreSuccess2
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre>test\ntest\n</pre>' != u'<pre>\ntest\ntest\n</pre>'
-
-======================================================================
-FAIL: testPreSuccess3 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 658, in testPreSuccess3
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre>test\n\ntest\n</pre>' != u'<pre>\ntest\n\ntest\n</pre>'
-
-======================================================================
-FAIL: testPreSuccess4 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 672, in testPreSuccess4
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre> * test\n</pre>' != u'<pre>\n * test\n</pre>'
-
-======================================================================
-FAIL: testPreSuccess5 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 684, in testPreSuccess5
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<pre>  </pre>' != u'<pre>\n  </pre>'
-
-======================================================================
-FAIL: testPreSuccess6 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
 ----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 702, in testPreSuccess6
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><pre>test\n</pre></li></ul>' != u'<ul>\n<li>\n<pre>\ntest\n</pre>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testPreSuccess7 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 720, in testPreSuccess7
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><pre>   test\n   </pre></li></ul>' != u'<ul>\n<li>\n<pre>\n   test\n   </pre>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testPreSuccess8 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 740, in testPreSuccess8
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p><pre>test\n</pre></li></ul>' != u'<ul>\n<li><p>test \n</p>\n<pre>\ntest\n</pre>\n</li>\n</ul>'
-
-======================================================================
-FAIL: testPreSuccess9 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 761, in testPreSuccess9
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<ul><li><p class="line886">test </p></li></ul><pre>test\n</pre>' != u'<ul>\n<li><p>test </p>\n</li>\n</ul>\n\n<pre>\ntest\n</pre>'
-
-======================================================================
-FAIL: testRule1 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 771, in testRule1
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<hr /><p class="line886"> </p>' != u'<hr/>'
-
-======================================================================
-FAIL: testTable01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 789, in testTable01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td><p class="line879"> </p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td>\n<p> </p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testTable02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 807, in testTable02
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td><p class="line879">test</p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td>\n<p>test</p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testTable03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 828, in testTable03
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td><p class="line879">test</p></td>\n  <td><p class="line879">test</p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td>\n<p>test</p>\n</td>\n<td>\n<p>test</p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testTable04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 855, in testTable04
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td><p class="line879">test</p></td>\n</tr>\n<tr>  <td><p class="line879">test</p></td>\n  <td><p class="line879">test</p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td>\n<p>test</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>test</p>\n</td>\n<td>\n<p>test</p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testTable05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 882, in testTable05
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td colspan="2" style="text-align:center;"><p class="line879">test</p></td>\n</tr>\n<tr>  <td><p class="line879">test</p></td>\n  <td><p class="line879">test</p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td colspan="2" style="text-align: center;">\n<p>test</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>test</p>\n</td>\n<td>\n<p>test</p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testTable06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertBlockRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 912, in testTable06
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 85, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<table><tr>  <td colspan="2" style="text-align:center;"><p class="line879">test</p></td>\n  <td><p class="line879">test</p></td>\n</tr>\n<tr>  <td><p class="line879">test</p></td>\n  <td colspan="2" style="text-align:center;"><p class="line879">test</p></td>\n</tr>\n</table>' != u'<div>\n<table>\n<tr>\n<td colspan="2" style="text-align: center;">\n<p>test</p>\n</td>\n<td>\n<p>test</p>\n</td>\n</tr>\n<tr>\n<td>\n<p>test</p>\n</td>\n<td colspan="2" style="text-align: center;">\n<p>test</p>\n</td>\n</tr>\n</table>\n</div>'
-
-======================================================================
-FAIL: testEmphasis01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 933, in testEmphasis01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i>test</i> </p>' != u'<p><em>test</em> </p>'
-
-======================================================================
-FAIL: testEmphasis02 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 938, in testEmphasis02
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><b>test</b> </p>' != u'<p><strong>test</strong> </p>'
-
-======================================================================
-FAIL: testEmphasis03 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 943, in testEmphasis03
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i><b>test</b></i> </p>' != u'<p><em><strong>test</strong></em> </p>'
-
-======================================================================
-FAIL: testEmphasis04 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 948, in testEmphasis04
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i>test<b>test</b></i> </p>' != u'<p><em>test<strong>test</strong></em> </p>'
-
-======================================================================
-FAIL: testEmphasis05 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 953, in testEmphasis05
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><b>test<i>test</i></b> </p>' != u'<p><strong>test<em>test</em></strong> </p>'
-
-======================================================================
-FAIL: testEmphasis06 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 958, in testEmphasis06
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i>test<b>test</b>test</i> </p>' != u'<p><em>test<strong>test</strong>test</em> </p>'
-
-======================================================================
-FAIL: testEmphasis07 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 963, in testEmphasis07
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><b>test<i>test</i>test</b> </p>' != u'<p><strong>test<em>test</em>test</strong> </p>'
-
-======================================================================
-FAIL: testEmphasis08 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 968, in testEmphasis08
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i>test</i><b>test</b> </p>' != u'<p><em>test</em><strong>test</strong> </p>'
-
-======================================================================
-FAIL: testEmphasis09 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 973, in testEmphasis09
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><b>test</b><i>test</i> </p>' != u'<p><strong>test</strong><em>test</em> </p>'
-
-======================================================================
-FAIL: testEmphasis10 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 978, in testEmphasis10
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><b><i>test</i>test</b> </p>' != u'<p><strong><em>test</em>test</strong> </p>'
+Ran 94 tests in 6.877s
 
-======================================================================
-FAIL: testEmphasis11 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 983, in testEmphasis11
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i><b>test</b>test</i> </p>' != u'<p><em><strong>test</strong>test</em> </p>'
-
-======================================================================
-FAIL: testFormatBig01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 988, in testFormatBig01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><big>test</big> </p>' != u'<p><big>test</big> </p>'
-
-======================================================================
-FAIL: testFormatSmall01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 993, in testFormatSmall01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><small>test</small> </p>' != u'<p><small>test</small> </p>'
-
-======================================================================
-FAIL: testFormatStrike01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 998, in testFormatStrike01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><span class="strike">test</span> </p>' != u'<p><strike>test</strike> </p>'
-
-======================================================================
-FAIL: testFormatSub01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1003, in testFormatSub01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><sub>test</sub> </p>' != u'<p><sub>test</sub> </p>'
-
-======================================================================
-FAIL: testFormatSup01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1008, in testFormatSup01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><sup>test</sup> </p>' != u'<p><sup>test</sup> </p>'
-
-======================================================================
-FAIL: testFormatUnderline01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1013, in testFormatUnderline01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><u>test</u> </p>' != u'<p><u>test</u> </p>'
-
-======================================================================
-FAIL: testPre01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1018, in testPre01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><tt>test</tt> </p>' != u'<p><tt>test</tt> </p>'
-
-======================================================================
-FAIL: testWhitespace01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineFormatRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1023, in testWhitespace01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 925, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><i>test <b>test</b></i> </p>' != u'<p><em>test <strong>test</strong></em> </p>'
-
-======================================================================
-FAIL: testNoWikiWord01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1049, in testNoWikiWord01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1036, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><span style="background-color:#ffff11">!</span>WikiWord </p>' != u'<p>WikiWord </p>'
-
-======================================================================
-FAIL: testSmiley01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1054, in testSmiley01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1036, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><img alt=":-)" height="15" src="/wiki/modern/img/smile.png" title=":-)" width="15" /> </p>' != u'<p><img src="/wiki/modern/img/smile.png" alt=":-)" height="15" width="15"> </p>'
-
-======================================================================
-FAIL: testWikiWord01 (MoinMoin._tests.test_converter_text_html_text_x_moin.ConvertInlineItemRepeatableTests)
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1044, in testWikiWord01
-    self.do(test, output)
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_converter_text_html_text_x_moin.py", line 1036, in do
-    self.failUnlessEqual(repeat, output)
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: u'<p class="line903"><a class="nonexistent nonexistent" href="./WikiWord">WikiWord</a> </p>' != u'<p><a class="nonexistent" href="./WikiWord">WikiWord</a> </p>'
-
-======================================================================
-FAIL: parser.wiki: empty lines before block element ignored
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 450, in testEmptyLineBeforeBlock
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<p>XXX\s*</p>\n+<hr" but got "<span class="anchor" id="line-1"></span><p class="line886">XXX <span class="anchor" id="line-2"></span></p><span class="anchor" id="line-3"></span><hr /><p class="line886"> <span class="anchor" id="line-4"></span></p><span class="anchor" id="line-5"></span>"
-
-======================================================================
-FAIL: parser.wiki: paragraph closed before block element
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 429, in testParagraphBeforeBlock
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<p>XXX\s*</p>\n+<hr" but got "<span class="anchor" id="line-1"></span><p class="line886">XXX <span class="anchor" id="line-2"></span></p><hr /><p class="line886"> <span class="anchor" id="line-3"></span></p><span class="anchor" id="line-4"></span>"
-
-======================================================================
-FAIL: parser.wiki: close open inline tag when block close
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 243, in testCloseOneInline
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<p>text<strong>text\s*</strong></p>" but got "<span class="anchor" id="line-1"></span><p class="line879">text<strong>text <span class="anchor" id="line-2"></span></strong></p>"
-
-======================================================================
-FAIL: parser.wiki: ignore white space around heading text
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 117, in testIgnoreWhiteSpaceAroundHeadingText
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: Expected "<span class="anchor" id="line-1"></span>
-<h1 id="head-c5ebc9c33963f7fc8730f19ee235cb34a6daa3a0">head</h1>
-" but got "<span class="anchor" id="line-1"></span>
-<h1 id="head-c5ebc9c33963f7fc8730f19ee235cb34a6daa3a0">head</h1>
-<span class="anchor" id="line-2"></span>"
-
-======================================================================
-FAIL: parser.wiki: empty line separates paragraphs
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 66, in testEmptyLineBetweenParagraphs
-    '"%s" not in "%s"' % (expected.pattern, result))
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: "<p>\s*Second\s*</p>" not in "<span class="anchor" id="line-1"></span><p class="line886">First <span class="anchor" id="line-2"></span></p><span class="anchor" id="line-3"></span><p class="line886">Second </p>"
-
-======================================================================
-FAIL: parser.wiki: first paragraph should be in <p>
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 59, in testFirstParagraph
-    '"%s" not in "%s"' % (expected.pattern, result))
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: "<p>\s*First\s*</p>" not in "<span class="anchor" id="line-1"></span><p class="line886">First </p>"
-
-======================================================================
-FAIL: parser.wiki: ------------ long rule shortened to hr6
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 401, in testLongRule
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<hr class="hr6">" but got "<span class="anchor" id="line-1"></span><hr class="hr6" /><p class="line886"> </p>"
-
-======================================================================
-FAIL: parser.wiki: ---- is standard rule
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 383, in testStandardRule
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<hr>" but got "<span class="anchor" id="line-1"></span><hr /><p class="line886"> </p>"
-
-======================================================================
-FAIL: parser.wiki: ----- rules with size
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_parser_wiki.py", line 393, in testVariableRule
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 278, in failUnless
-    if not expr: raise self.failureException, msg
-AssertionError: Expected "<hr class="hr1">" but got "<span class="anchor" id="line-1"></span><hr class="hr1" /><p class="line886"> </p>"
-
-======================================================================
-FAIL: util.web: creating html select with non existing selection
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_util_web.py", line 87, in testMakeSelectNoSelection
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: Expected "<select name="test"><option value="one">one</option><option value="two">two</option><option value="simple">simple</option><option value="complex">A tuple &amp; &lt;escaped text&gt;</option></select>" but got "<select name="test" size="1"><option value="one">one</option><option value="two">two</option><option value="simple">simple</option><option value="complex">A tuple &amp; &lt;escaped text&gt;</option></select>"
-
-======================================================================
-FAIL: util.web: creating html select with selected item
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_util_web.py", line 94, in testMakeSelectWithSelectedItem
-    'Expected "%(expected)s" but got "%(result)s"' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
-    raise self.failureException, \
-AssertionError: Expected "<select name="test"><option value="one">one</option><option selected value="two">two</option><option value="simple">simple</option><option value="complex">A tuple &amp; &lt;escaped text&gt;</option></select>" but got "<select name="test" size="1"><option value="one">one</option><option selected value="two">two</option><option value="simple">simple</option><option value="complex">A tuple &amp; &lt;escaped text&gt;</option></select>"
-
-======================================================================
-FAIL: wikiutil: good system page names accepted, bad rejected
-----------------------------------------------------------------------
-Traceback (most recent call last):
-  File "/srv/moin_tw/moin--main--1.5/MoinMoin/_tests/test_wikiutil.py", line 34, in testSystemPage
-    '"%(name)s" is NOT a system page' % locals())
-  File "/usr/lib/python2.3/unittest.py", line 274, in failIf
-    if expr: raise self.failureException, msg
-AssertionError: "FrontPage" is NOT a system page
-
-----------------------------------------------------------------------
-Ran 197 tests in 6.962s
-
-FAILED (failures=82, errors=5)
+OK