mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-05 04:07:20 +00:00
Pull out protocol components into protocol.py
This commit is contained in:
parent
d5a0099f49
commit
aae8a9959c
5 changed files with 356 additions and 343 deletions
|
|
@ -72,7 +72,6 @@ class TestServer(ServerTestBase):
|
|||
assert "Testing an error" in self.q.get()
|
||||
|
||||
|
||||
|
||||
class TestTCPClient:
|
||||
def test_conerr(self):
|
||||
tutils.raises(netlib.NetLibError, netlib.TCPClient, False, "127.0.0.1", 0, None)
|
||||
|
|
@ -92,4 +91,3 @@ class TestFileLike:
|
|||
s = cStringIO.StringIO("foobar\nfoobar")
|
||||
s = netlib.FileLike(s)
|
||||
assert s.readline(3) == "foo"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue