mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-29 04:35:02 +08:00
fix linux tests...
This commit is contained in:
@@ -190,7 +190,7 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2, 3]",
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@@ -199,7 +199,7 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2, 3]",
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert r[0] == "JSON"
|
||||
|
||||
@@ -208,7 +208,7 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2",
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@@ -217,7 +217,7 @@ Larry
|
||||
[],
|
||||
"[1, 2",
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@@ -230,7 +230,7 @@ Larry
|
||||
],
|
||||
encoding.encode('gzip', "[1, 2, 3]"),
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert "decoded gzip" in r[0]
|
||||
assert "JSON" in r[0]
|
||||
@@ -243,7 +243,7 @@ Larry
|
||||
],
|
||||
encoding.encode('gzip', "[1, 2, 3]"),
|
||||
1000,
|
||||
lambda x: None
|
||||
lambda x, l: None
|
||||
)
|
||||
assert "decoded gzip" in r[0]
|
||||
assert "Raw" in r[0]
|
||||
|
||||
Reference in New Issue
Block a user