'If a before-phase trigger removes a during-phase trigger which is
identical to an already-executed before-phase trigger aside from their
phases, no warning should be emitted and the during-phase trigger
should not be run.'

def test_synchronousBeforeRemovesConspicuouslySimilarDuring(self):

    events = []
    def trigger():
        events.append('trigger')
    self.event.addTrigger('before', trigger)
    self.event.addTrigger('before', (lambda : self.event.removeTrigger(duringTrigger)))
    duringTrigger = self.event.addTrigger('during', trigger)
    self.event.fireEvent()
    self.assertEqual(events, ['trigger'])
