'If a before-phase trigger raises a synchronous exception, it should be
logged and the remaining triggers should be run.'

def test_beforeTriggerException(self):

    events = []
    class DummyException(Exception, ):
        pass
    def raisingTrigger():
        raise DummyException()
    self.event.addTrigger('before', raisingTrigger)
    self.event.addTrigger('before', events.append, 'before')
    self.event.addTrigger('during', events.append, 'during')
    self.event.fireEvent()
    self.assertEqual(events, ['before', 'during'])
    errors = self.flushLoggedErrors(DummyException)
    self.assertEqual(len(errors), 1)
