'The temporary list L{_ThreePhaseEvent.finishedBefore} should be emptied
and the state reset to C{\'BASE\'} before the first during-phase trigger
executes.'

def test_finishedBeforeTriggersCleared(self):

    events = []
    def duringTrigger():
        events.append('during')
        self.assertEqual(self.event.finishedBefore, [])
        self.assertEqual(self.event.state, 'BASE')
    self.event.addTrigger('before', events.append, 'before')
    self.event.addTrigger('during', duringTrigger)
    self.event.fireEvent()
    self.assertEqual(events, ['before', 'during'])
