changeset 2526:860e7bf6c4cc

add failing {{{ }}} test
author Johannes Berg <johannes AT sipsolutions DOT net>
date Mon, 23 Jul 2007 11:35:07 +0200
parents ce7fc6ba9b3a
children 4f6f7e56eb40
files MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Mon Jul 23 03:39:14 2007 +0200
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Mon Jul 23 11:35:07 2007 +0200
@@ -573,6 +573,15 @@
 
         assert expected == result
 
+    def testMultipleShortPreSections(self):
+        """
+        tests two single {{{ }}} in one line
+        """
+        raw = 'def {{{ghi}}} jkl {{{mno}}} pqr'
+        output = ''.join(self.parse(raw))
+        # expected output copied from 1.5
+        expected = 'def <tt>ghi</tt> jkl <tt>mno</tt> pqr'
+        assert expected in output
 
 class TestLinkingMarkup(ParserTestCase):
     """ Test wiki markup """