def connectionLost(self, reason=connectionDone): """connection lost""" self.factory.unregisterProtocol(self) ClientTestHelper.connectionLost(self, reason=reason)