Fix lint.
This commit is contained in:
parent
f8f03ea99d
commit
2190316b27
@ -36,6 +36,7 @@ from qutebrowser.browser import http, rfc6266
|
|||||||
])
|
])
|
||||||
@hypothesis.given(strategies.text(alphabet=[chr(x) for x in range(255)]))
|
@hypothesis.given(strategies.text(alphabet=[chr(x) for x in range(255)]))
|
||||||
def test_parse_content_disposition(template, stubs, s):
|
def test_parse_content_disposition(template, stubs, s):
|
||||||
|
"""Test parsing headers based on templates which hypothesis completes."""
|
||||||
header = template.format(s)
|
header = template.format(s)
|
||||||
reply = stubs.FakeNetworkReply(headers={'Content-Disposition': header})
|
reply = stubs.FakeNetworkReply(headers={'Content-Disposition': header})
|
||||||
http.parse_content_disposition(reply)
|
http.parse_content_disposition(reply)
|
||||||
|
Loading…
Reference in New Issue
Block a user