Skip to content
Myr

Add failing tests for invalid %encodings

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

authored by Jonty Wareing · committed by Jonty Wareing · parent 3550ac7 · Browse files · 1 file+7 added−0 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+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_requests.py+7 added
181 unmodified lines
182 url = httpbin('get/?' + query_unreserved_escaped)183 response = get(url)184 self.assertEqual(response.url, httpbin('get/?' + query_unreserved))185186 # We should ignore invalid %encodings187 request = requests.Request("http://0.0.0.0/get/%TEST")188 self.assertEqual(request.path_url, "/get/%TEST")189190 request = requests.Request("http://0.0.0.0/get/%%TEST%%")191 self.assertEqual(request.path_url, "/get/%%TEST%%")192193 def test_user_agent_transfers(self):194 """Issue XX"""195196 heads = {
620 unmodified lines