changeset 1982:d3b108fa83b2

interwiki tests: make the test source ascii again, fix tests, remove encoding declaration from source
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 11 Feb 2013 14:34:12 +0100
parents 6c11bf46c602
children bb2f526d961c
files MoinMoin/util/_tests/test_interwiki.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/util/_tests/test_interwiki.py	Mon Feb 11 18:19:33 2013 +0800
+++ b/MoinMoin/util/_tests/test_interwiki.py	Mon Feb 11 14:34:12 2013 +0100
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
 # Copyright: 2010 MoinMoin:ThomasWaldmann
 # Copyright: 2010 MoinMoin:MicheleOrru
 # License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
@@ -116,8 +115,8 @@
 
                  (('http://example.org/', u'SomePage', u'ns1'), 'http://example.org/:ns1:SomePage'),
                  (('http://example.org/?page=$PAGE&action=show&namespace=$NAMESPACE', u'SomePage', u'ns1'), 'http://example.org/?page=SomePage&action=show&namespace=ns1'),
-                 (('http://example.org/', u'Aktuelle\xc4nderungen', u'ns1ççç'), 'http://example.org/:ns1%C3%83%C2%A7%C3%83%C2%A7%C3%83%C2%A7:Aktuelle%C3%84nderungen'),
-                 (('http://example.org/$NAMESPACE/$PAGE/show', u'Aktuelle\xc4nderungen', u'nsç1'), 'http://example.org/ns%C3%83%C2%A71/Aktuelle%C3%84nderungen/show'),
+                 (('http://example.org/', u'Aktuelle\xc4nderungen', u'ns1\xc4'), 'http://example.org/:ns1%C3%84:Aktuelle%C3%84nderungen'),
+                 (('http://example.org/$NAMESPACE/$PAGE/show', u'Aktuelle\xc4nderungen', u'ns\xc41'), 'http://example.org/ns%C3%841/Aktuelle%C3%84nderungen/show'),
                 ]
         for (baseurl, pagename, namespace), url in tests:
             assert join_wiki(baseurl, pagename, namespace) == url