changeset 2373:7e7560f2cddd

more tests for linking
author Johannes Berg <johannes AT sipsolutions DOT net>
date Thu, 12 Jul 2007 14:37:27 +0200
parents 704c1051e73f
children 629dea07759f
files MoinMoin/parser/_tests/test_text_moin_wiki.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/parser/_tests/test_text_moin_wiki.py	Thu Jul 12 13:40:38 2007 +0200
+++ b/MoinMoin/parser/_tests/test_text_moin_wiki.py	Thu Jul 12 14:37:27 2007 +0200
@@ -583,7 +583,9 @@
         ('["something"]',             '<a class="nonexistent" href="./something">something</a>'),
         ("['something']",             "['something']"),
         ('MoinMoin:"something"',      '<a class="interwiki" href="http://moinmoin.wikiwikiweb.de/something" title="MoinMoin">something</a>'),
-        ("MoinMoin:'something else'", '<a class="nonexistent" href="./MoinMoin">MoinMoin</a>:\'something else\''),
+        ('MoinMoin:"with space"',     '<a class="interwiki" href="http://moinmoin.wikiwikiweb.de/with%20space" title="MoinMoin">with space</a>'),
+        ('RFC:"1 2 3"',               '<a class="interwiki" href="http://www.ietf.org/rfc/rfc1%202%203" title="RFC">1 2 3</a>'),
+        ("RFC:'something else'",      "RFC:'something else'"),
         )
 
     def testTextFormating(self):