'If a during-phase trigger removes another during-phase trigger which
has not yet run, the removed trigger should not be run.'

def test_synchronousRemovePendingDuring(self):

    events = []
    self.event.addTrigger('during', (lambda : self.event.removeTrigger(duringHandle)))
    duringHandle = self.event.addTrigger('during', events.append, ('first', 'during'))
    self.event.addTrigger('during', events.append, ('second', 'during'))
    self.event.fireEvent()
    self.assertEqual(events, [('second', 'during')])
