From: Matt Giuca Date: Wed, 15 Feb 2012 00:47:02 +0000 (+1100) Subject: Added test cases for URI cleaning in the query part (Issue #429). X-Git-Tag: v0.10.2~20^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ae0ff36853d14b3bb23f1344df4889f0f44ed4c;p=services%2Fpython-requests.git Added test cases for URI cleaning in the query part (Issue #429). --- diff --git a/test_requests.py b/test_requests.py index 2783a23..0b5edcc 100644 --- a/test_requests.py +++ b/test_requests.py @@ -160,6 +160,29 @@ class RequestsTestSuite(TestSetup, unittest.TestCase): response = get(url) self.assertEqual(response.url, httpbin('get/' + path_unreserved)) + # Re-run all of the same tests on the query part of the URI + query_fully_escaped = '%3Ca%25b%23c%2Fd%3E=%C3%98%20%C3%A5' + url = httpbin('get/?' + query_fully_escaped) + response = get(url) + self.assertEqual(response.url, httpbin('get/?' + query_fully_escaped)) + + query = u'