Skip to content
Myr

Changed test case test_path_is_not_double_encoded.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Uses the space character instead of ~ as a test (since ~ is unreserved, it shouldn't really be encoded at all).

authored by Matt Giuca · committed by Matt Giuca · parent 75bd9d0 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:test_requests.py+2 added-2 removed
72 unmodified lines
73 self.assertRaises(ValueError, get, 'hiwpefhipowhefopw')747576 def test_path_is_not_double_encoded(self):77 request = requests.Request("http://0.0.0.0/get/~test")77 request = requests.Request("http://0.0.0.0/get/test case")7879 assert request.path_url == "/get/%7Etest"79 assert request.path_url == "/get/test%20case"8081 def test_HTTP_200_OK_GET(self):82 r = get(httpbin('/get'))83 self.assertEqual(r.status_code, 200)
697 unmodified lines