changeset 285:2323fc2eab55

fixed some converter test imported from: moin--main--1.5--patch-289
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 04 Dec 2005 16:06:53 +0000
parents 16dcb33f2571
children 08cd0e9b9369
files MoinMoin/_tests/test_converter_text_html_text_x_moin.py
diffstat 1 files changed, 9 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_converter_text_html_text_x_moin.py	Sun Dec 04 15:32:56 2005 +0000
+++ b/MoinMoin/_tests/test_converter_text_html_text_x_moin.py	Sun Dec 04 16:06:53 2005 +0000
@@ -2,7 +2,7 @@
 """
 MoinMoin - MoinMoin.text_html_text_x_moin Tests
 
-@copyright: 2000-2005 by J├╝rgen Hermann <jh@web.de>
+@copyright: 2005 by Bastian Blank, ThomasWaldmann
 @license: GNU GPL, see COPYING for details.
 """
 
@@ -88,26 +88,19 @@
 
     def testComment01(self):
         test = ur"""
-#test
+##test
 """
-        output = ur"""<!--#test-->"""
+        output = u"""<pre class="comment">\n##test</pre>"""
         self.do(test, output)
 
     def testComment02(self):
         test = ur"""
 ##test
-"""
-        output = ur"""<!--##test-->"""
-        self.do(test, output)
-
-    def testComment03(self):
-        test = ur"""
-##test
 ##test
 """
-        output = ur"""
-<!--##test-->
-<!--##test-->
+        output = u"""
+<pre class="comment">\n##test</pre>
+<pre class="comment">\n##test</pre>
 """
         self.do(test, output)
 
@@ -1016,7 +1009,7 @@
 
     def testFormatUnderline01(self):
         test = ur"__test__"
-        output = ur""
+        output = ur"<u>test</u>"
         self.do(test, output)
 
     def testPre01(self):
@@ -1047,7 +1040,7 @@
 
     def testWikiWord01(self):
         test = ur"WikiWord"
-        output = ur"""<a href=""""" # XXX ???
+        output = ur"""<a class="nonexistent" href="./WikiWord">WikiWord</a>"""
         self.do(test, output)
 
     def testNoWikiWord01(self):
@@ -1057,7 +1050,7 @@
 
     def testSmiley01(self):
         test = ur":-)"
-        output = ur""
+        output = ur"""<img src="/wiki/modern/img/smile.png" alt=":-)" height="15" width="15">"""
         self.do(test, output)
 
 class StripTests(unittest.TestCase):