
Oct. 31, 2006
5 p.m.
And, is it possible to patch it somehow so lineReceived function could be unit-tested?
After short reflection I found the solution def myLineReceived(self, line): # ... # can return deferred def lineReceived(self, line): self.myLineReceived(line) and unit tests just use myLineReceived. A bit clumsy, but works. The main question (why lineReceived breaks connection on true reply) of course remains valid.