Commit 94ddf76a by Gabriel

Add a test for url-decoding.

parent 25e39f5b
......@@ -395,6 +395,11 @@ def test_parsing():
assert cd.filename_unsafe == u'€ rates'
def test_location_fallback():
assert parse_headers(
None, location='https://foo/bar%c3%a9.py').filename_unsafe == u'baré.py'
def test_roundtrip():
def roundtrip(filename):
return parse_headers(build_header(filename)).filename_unsafe
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment