def test_synchronousBeforeRemovesDuring(self):
        events = []
        self.event.addTrigger(
            'before', lambda: self.event.removeTrigger(duringHandle))
        duringHandle = self.event.addTrigger('during', events.append, 'during')
        self.event.addTrigger('after', events.append, 'after')
        self.event.fireEvent()
        self.assertEqual(events, ['after'])
If a before-phase trigger removes a during-phase trigger, the
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/ThreePhaseEventTests.test_synchronousBeforeRemovesDuring