From 5cd7563d1243f3944c5e111de69361643de27516 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 30 Apr 2013 09:13:33 +1200 Subject: Minor coverage. --- libmproxy/flow.py | 1 - test/test_flow.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 50b30fe1..c20fa558 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -827,7 +827,6 @@ class ClientConnect(StateObject): def __str__(self): if self.address: return "%s:%d"%(self.address[0],self.address[1]) - return "None" def _load_state(self, state): self.close = True diff --git a/test/test_flow.py b/test/test_flow.py index 4ad692bc..718f3551 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -1191,6 +1191,8 @@ class TestClientConnect: c3 = c.copy() assert c3 == c + assert str(c) + def test_decoded(): r = tutils.treq() -- cgit v1.2.3