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:
Matt Giuca
2012-02-14 12:49:31 +11:00
parent 75bd9d0e94
commit c0763bb8d5
+2 -2
View File
@@ -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'))