From c0763bb8d5b3f4ac74a1d77d064474e4823e2246 Mon Sep 17 00:00:00 2001 From: Matt Giuca Date: Tue, 14 Feb 2012 12:49:31 +1100 Subject: [PATCH] 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). --- test_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')) -- 2.34.1