[Twisted-Python] Re: If lineReceived returns deferred, then connection is dropped and this deferred given as error message

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Tue Oct 31 11:55:42 EST 2006

> While Twisted's handling of the result of lineReceived is
> perhaps confusing, I find your reasons for wanting it changed
> dubious: your unit tests should be testing that lineReceived
> has the appropriate *effects*, 

And this is exactly what do I want: lineReceived should 
cause some effect (in my case, for instance some database
update). So I call lineReceived with the intended string, and
want - in unit test - to verify whether the update was actually 
made (it is done by deferred subroutine). But, to check for it, 
I must wait for it somehow.... 

More information about the Twisted-Python mailing list