changeset 2741:3aae97249905

1.6 converter: interwiki test cases checked
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 21 Aug 2007 14:30:56 +0200
parents 63ae36c70930
children 0f16bcbc0344
files MoinMoin/script/migration/_tests/test_conv160_wiki.py
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Tue Aug 21 14:11:31 2007 +0200
+++ b/MoinMoin/script/migration/_tests/test_conv160_wiki.py	Tue Aug 21 14:30:56 2007 +0200
@@ -24,7 +24,7 @@
 from MoinMoin.script.migration._conv160_wiki import convert_wiki
 
 class TestWikiConversion:
-    """ test the wiki markup conversion for 1.6.0 """
+    """ test the wiki markup conversion 1.5.8 -> 1.6.0 """
     def test_absolute(self):
         request = self.request
         pagename = 'TestPage'
@@ -40,7 +40,6 @@
             # FAILING tests:
             #('[wiki:/OtherPage]', rename_some_page, '[[/OtherPage]]'),
             #('[wiki:/OtherPage other page]', rename_some_page, '[wiki:/OtherPage other page]'),
-            #('[wiki:LinuxWiki: LinuxWiki.de]', {}, '[wiki:LinuxWiki: LinuxWiki.de]'),
 
             # does not work in 1.5.8, no need to convert:
             #('[:MeatBall:CleanLinking meatball-wiki: clean linking]', {}, '[:MeatBall:CleanLinking meatball-wiki: clean linking]'),
@@ -48,16 +47,14 @@
             # does not work in 1.5.8, no need to convert:
             #('[attachment:some_page.txt attachment:some_page.png]', rename_some_page, '[[attachment:some_page.txt|{{attachment:some_page.png}}]]'),
 
-            # ambiguity!!! can be resolved with some interwiki map lookup
-            # and transformed to wiki:MoinMoin:FrontPage if MoinMoin is in
-            # interwiki map, but no page MoinMoin exists.
-            #('[wiki:MacroMarket/EmbedObject EO]', {}, '["MacroMarket/EmbedObject" EO]'),
-            ('[wiki:MoinMoin/FrontPage]', {}, '[[MoinMoin:FrontPage]]'),
-
             # "nothing changed" checks (except markup)
             ('', {}, ''),
             ('CamelCase', {}, 'CamelCase'),
             ('MoinMaster:CamelCase', {}, 'MoinMaster:CamelCase'),
+            ('[wiki:LinuxWiki: LinuxWiki.de]', {}, '[[LinuxWiki:|LinuxWiki.de]]'),
+            # does not work in 1.5.8, no need to convert:
+            #('[wiki:MacroMarket/EmbedObject EO]', {}, '["MacroMarket/EmbedObject" EO]'),
+            ('[wiki:MoinMoin/FrontPage]', {}, '[[MoinMoin:FrontPage]]'),
             ('some_text', {}, 'some_text'),
             ('["some_text"]', {}, '[[some_text]]'),
             ('some_page', rename_some_page, 'some_page'), # not a link