mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Repair test suite.
This commit is contained in:
parent
7d01d5c797
commit
1662d6d572
@ -218,11 +218,12 @@ def test_read_response():
|
||||
|
||||
data = """
|
||||
HTTP/1.1 200 OK
|
||||
Content-Length: 3
|
||||
|
||||
foo
|
||||
"""
|
||||
assert tst(data, "GET", None) == ((1, 1), 200, 'OK', odict.ODictCaseless(), 'foo\n')
|
||||
assert tst(data, "HEAD", None) == ((1, 1), 200, 'OK', odict.ODictCaseless(), '')
|
||||
assert tst(data, "GET", None)[4] == 'foo'
|
||||
assert tst(data, "HEAD", None)[4] == ''
|
||||
|
||||
|
||||
def test_parse_url():
|
||||
|
Loading…
Reference in New Issue
Block a user