changeset 4022:6502ec387b1f

add some tests for preformatted syntax
author Byeongweon [tasyblue@gmail.com]
date Tue, 19 Aug 2008 12:33:08 +0900
parents b1e192a3651a
children 0a89675b96f1
files MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py
diffstat 1 files changed, 61 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py	Tue Aug 19 03:05:36 2008 +0900
+++ b/MoinMoin/converter/_tests/test_text_html_text_moin_wiki.py	Tue Aug 19 12:33:08 2008 +0900
@@ -788,6 +788,67 @@
 """
         self.do(test, output)
 
+    def testPreSuccess10(self):
+        test = ur"""
+ * {{{{
+{{{
+test
+}}}
+}}}}
+
+"""
+        output = ur"""
+<ul>
+<li>
+<pre>
+{{{
+test
+}}}
+</pre>
+</li>
+</ul>
+"""
+
+    def testPreSuccess11(self):
+        test = ur"""
+ * {{{{
+test
+}}}
+}}}}
+
+"""
+        output = ur"""
+<ul>
+<li>
+<pre>
+test
+}}}
+</pre>
+</li>
+</ul>
+"""
+
+    def testPreSuccess12(self):
+        test = ur"""
+ * {{{{
+{{{
+test
+}}}}
+
+"""
+        output = ur"""
+<ul>
+<li>
+<pre>
+{{{
+test
+</pre>
+</li>
+</ul>
+"""
+
+        self.do(test, output)
+
     def testRule1(self):
         py.test.skip('broken test')
         test = ur"""