mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Remove stray prints from test suite
This commit is contained in:
parent
b7e6e1c9b2
commit
99e89a1efc
@ -485,7 +485,6 @@ class TestAssembleResponse(object):
|
||||
def test_simple(self):
|
||||
resp = tutils.tresp()
|
||||
b = HTTP1Protocol().assemble_response(resp)
|
||||
print(b)
|
||||
assert b == match_http_string("""
|
||||
HTTP/1.1 200 OK
|
||||
header_response: svalue
|
||||
|
@ -399,7 +399,6 @@ class TestAssembleRequest(object):
|
||||
req.stream_id = 0x42
|
||||
bytes = HTTP2Protocol(self.c).assemble_request(req)
|
||||
assert len(bytes) == 1
|
||||
print(bytes[0].encode('hex'))
|
||||
assert bytes[0] == '00000d0105000000428284874188089d5c0b8170dc07'.decode('hex')
|
||||
|
||||
def test_request_with_body(self):
|
||||
|
@ -14,7 +14,6 @@ class TestHttpAuthenticationError:
|
||||
assert isinstance(x.headers, odict.ODictCaseless)
|
||||
assert x.code == 407
|
||||
assert x.headers == headers
|
||||
print(x.headers.keys())
|
||||
assert "foo" in x.headers.keys()
|
||||
|
||||
def test_header_conversion(self):
|
||||
|
Loading…
Reference in New Issue
Block a user