From 3ae0ff36853d14b3bb23f1344df4889f0f44ed4c Mon Sep 17 00:00:00 2001 From: Matt Giuca Date: Wed, 15 Feb 2012 11:47:02 +1100 Subject: [PATCH] Added test cases for URI cleaning in the query part (Issue #429). --- test_requests.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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'