'L{IReactorCore.addSystemEventTrigger} should call triggers added to the
C{\'during\'} phase before it calls triggers added to the C{\'after\'}
phase.'

def test_duringPreceedsAfter(self):

    eventType = 'test'
    events = []
    def duringTrigger():
        events.append('during')
    def afterTrigger():
        events.append('after')
    self.addTrigger('during', eventType, duringTrigger)
    self.addTrigger('after', eventType, afterTrigger)
    self.assertEqual(events, [])
    reactor.fireSystemEvent(eventType)
    self.assertEqual(events, ['during', 'after'])
