[Bug 26583] Allow channels to be dispatched before a connection is established

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 15 15:47:20 CET 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26583





--- Comment #9 from Simon McVittie <simon.mcvittie at collabora.co.uk>  2010-03-15 07:47:19 PST ---
You still seem to be expect()ing StatusChanged. Why? The test script has full
control over the SimulatedConnection's status, so this makes no sense.

Tests should be making expectations/assertions about what the code under test
(MC) does, not about what the test harness does. The SimulatedConnection, and
all other Python code in test/twisted/, is part of the test harness.

As I said previously, one event that it *would* make sense to expect() is the
call to Connect(), which MC will do. This happens to cause StatusChanged as a
side-effect of the SimulatedConnection's implementation of Connect.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the telepathy-bugs mailing list