From: Matt Giuca Date: Tue, 14 Feb 2012 01:49:31 +0000 (+1100) Subject: Changed test case test_path_is_not_double_encoded. X-Git-Tag: v0.10.2~21^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0763bb8d5b3f4ac74a1d77d064474e4823e2246;p=services%2Fpython-requests.git Changed test case test_path_is_not_double_encoded. Uses the space character instead of ~ as a test (since ~ is unreserved, it shouldn't really be encoded at all). --- diff --git a/test_requests.py b/test_requests.py index 00cc3c1..2783a23 100644 --- a/test_requests.py +++ b/test_requests.py @@ -74,9 +74,9 @@ class RequestsTestSuite(TestSetup, unittest.TestCase): def test_path_is_not_double_encoded(self): - request = requests.Request("http://0.0.0.0/get/~test") + request = requests.Request("http://0.0.0.0/get/test case") - assert request.path_url == "/get/%7Etest" + assert request.path_url == "/get/test%20case" def test_HTTP_200_OK_GET(self): r = get(httpbin('/get'))