diff --git a/test_requests.py b/test_requests.py index 2783a23b..0b5edcce 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'