changeset 1065:cd5c2aed0c31

fix tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 26 Jul 2006 13:07:01 +0200
parents a8ea94a0cbe8
children 05e4cd948a0f
files MoinMoin/_tests/test_request.py wikiconfig.py
diffstat 2 files changed, 1 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_request.py	Wed Jul 26 12:54:03 2006 +0200
+++ b/MoinMoin/_tests/test_request.py	Wed Jul 26 13:07:01 2006 +0200
@@ -123,30 +123,3 @@
                              'wrong date string')
 
 
-class GetPageNameFromQueryString(unittest.TestCase):
-    """ Test urls like http://netloc/wiki?pagename """
-
-    def setUp(self):
-        self.savedQuery = self.request.query_string
-
-    def tearDown(self):
-        self.request.query_string = self.savedQuery
-
-    def testAscii(self):
-        """ request: getPageNameFromQueryString: ascii """
-        name = expected = u'page name'
-        self.runTest(name, expected)
-
-    def testNonAscii(self):
-        """ request: getPageNameFromQueryString: non ascii """
-        name = expected = u'דף עברי'
-        self.runTest(name, expected)
-
-    def runTest(self, name, expected):
-        import urllib
-        # query as made by most browsers when you type the url into the
-        # location box.
-        query = urllib.quote(name.encode('utf-8'))
-        self.request.query_string = query
-        self.assertEqual(self.request.getPageNameFromQueryString(), expected)
-
--- a/wikiconfig.py	Wed Jul 26 12:54:03 2006 +0200
+++ b/wikiconfig.py	Wed Jul 26 13:07:01 2006 +0200
@@ -6,7 +6,7 @@
 @license: GNU GPL, see COPYING for details.
 """
 
-from MoinMoin.multiconfig import DefaultConfig
+from MoinMoin.config.multiconfig import DefaultConfig
 
 
 class Config(DefaultConfig):