
Oct. 31, 2006
4:55 p.m.
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....