mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
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).
This commit is contained in:
+2
-2
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user