mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Minor coverage.
This commit is contained in:
parent
98b860b0f7
commit
5cd7563d12
@ -827,7 +827,6 @@ class ClientConnect(StateObject):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.address:
|
if self.address:
|
||||||
return "%s:%d"%(self.address[0],self.address[1])
|
return "%s:%d"%(self.address[0],self.address[1])
|
||||||
return "None"
|
|
||||||
|
|
||||||
def _load_state(self, state):
|
def _load_state(self, state):
|
||||||
self.close = True
|
self.close = True
|
||||||
|
@ -1191,6 +1191,8 @@ class TestClientConnect:
|
|||||||
c3 = c.copy()
|
c3 = c.copy()
|
||||||
assert c3 == c
|
assert c3 == c
|
||||||
|
|
||||||
|
assert str(c)
|
||||||
|
|
||||||
|
|
||||||
def test_decoded():
|
def test_decoded():
|
||||||
r = tutils.treq()
|
r = tutils.treq()
|
||||||
|
Loading…
Reference in New Issue
Block a user