Minor coverage.

This commit is contained in:
Aldo Cortesi 2013-04-30 09:13:33 +12:00
parent 98b860b0f7
commit 5cd7563d12
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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()