From: Kenneth Reitz Date: Mon, 23 Apr 2012 02:25:57 +0000 (-0400) Subject: Revert "Reenable test_session_with_escaped_url test" X-Git-Tag: v0.12.0~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3843a40f7cde8242c84533a5d6079f444cb3f5c8;p=services%2Fpython-requests.git Revert "Reenable test_session_with_escaped_url test" This reverts commit 3550ac7473883aea52ca7f4153de8c26357d5c37. --- diff --git a/tests/test_requests.py b/tests/test_requests.py index db3baad..e88c636 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -117,71 +117,71 @@ class RequestsTestSuite(TestSetup, unittest.TestCase): # self.assertRaises(UnicodeEncodeError, requests.get, # url=httpbin('get'), headers=heads) - def test_session_with_escaped_url(self): - # Test a URL that contains percent-escaped characters - # This URL should not be modified (double-escaped) - # Tests: - # - Quoted illegal characters ("%20" (' '), "%3C" ('<'), "%3E" ('>')) - # - Quoted reserved characters ("%25" ('%'), "%23" ('#'), "%2F" ('/')) - # - Quoted non-ASCII characters ("%C3%98", "%C3%A5") - path_fully_escaped = '%3Ca%25b%23c%2Fd%3E/%C3%98%20%C3%A5' - url = httpbin('get/' + path_fully_escaped) - response = get(url) - self.assertEqual(response.url, httpbin('get/' + path_fully_escaped)) - - # Test that illegal characters in a path get properly percent-escaped - # Tests: - # - Bare illegal characters (space, '<') - # - Bare non-ASCII characters ('\u00d8') - path = u'')) + # # - Quoted reserved characters ("%25" ('%'), "%23" ('#'), "%2F" ('/')) + # # - Quoted non-ASCII characters ("%C3%98", "%C3%A5") + # path_fully_escaped = '%3Ca%25b%23c%2Fd%3E/%C3%98%20%C3%A5' + # url = httpbin('get/' + path_fully_escaped) + # response = get(url) + # self.assertEqual(response.url, httpbin('get/' + path_fully_escaped)) + + # # Test that illegal characters in a path get properly percent-escaped + # # Tests: + # # - Bare illegal characters (space, '<') + # # - Bare non-ASCII characters ('\u00d8') + # path = u'