schwern/test-more — Issue #164: Move logic to accept events down into EventWatcher
Author: schwern
Created: 2011-11-02 20:21:42+00:00
State: open
Labels: DO IT, Easy, Events, Gardening, Test-Builder2

Right now, the logic for an EventWatcher to accept an event is in the EventCoordinator. You cannot reliably hand an event to an EventWatcher without passing it through an EventCoordinator. This is a pain in the ass for testing and it uncomfortably couples the two together.

Move the logic in post_event which chooses an accept_* handler down into EventWatcher. Call it `receive_event`.

If you like, remove the EventCoordinator from the EventWatcher tests where applicable.