mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Adding test
This commit is contained in:
parent
e82641ee2d
commit
60cd8cb0b1
@ -354,7 +354,7 @@ class TestRequestUtils:
|
||||
assert len(request.urlencoded_form) == 0
|
||||
|
||||
def test_set_urlencoded_form(self):
|
||||
request = treq()
|
||||
request = treq(content=b"\xec\xed")
|
||||
request.urlencoded_form = [('foo', 'bar'), ('rab', 'oof')]
|
||||
assert request.headers["Content-Type"] == "application/x-www-form-urlencoded"
|
||||
assert request.content
|
||||
|
Loading…
Reference in New Issue
Block a user