mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
fix tests
This commit is contained in:
parent
5125c669cc
commit
a8d931089c
@ -164,16 +164,16 @@ Content-Disposition: form-data; name="submit-name"
|
|||||||
Larry
|
Larry
|
||||||
--AaB03x
|
--AaB03x
|
||||||
""".strip()
|
""".strip()
|
||||||
h = Headers(content_type="multipart/form-data; boundary=AaB03x"),
|
h = Headers(content_type="multipart/form-data; boundary=AaB03x")
|
||||||
assert view(h, v, 1000)
|
assert view(h, v, 1000)
|
||||||
|
|
||||||
h = Headers(),
|
h = Headers()
|
||||||
assert not view(h, v, 1000)
|
assert not view(h, v, 1000)
|
||||||
|
|
||||||
h = Headers(content_type="multipart/form-data"),
|
h = Headers(content_type="multipart/form-data")
|
||||||
assert not view(h, v, 1000)
|
assert not view(h, v, 1000)
|
||||||
|
|
||||||
h = Headers(content_type="unparseable"),
|
h = Headers(content_type="unparseable")
|
||||||
assert not view(h, v, 1000)
|
assert not view(h, v, 1000)
|
||||||
|
|
||||||
def test_get_content_view(self):
|
def test_get_content_view(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user