def test_synchronousRemovePendingBefore(self):
        events = []
        self.event.addTrigger(
            'before', lambda: self.event.removeTrigger(beforeHandle))
        beforeHandle = self.event.addTrigger(
            'before', events.append, ('first', 'before'))
        self.event.addTrigger('before', events.append, ('second', 'before'))
        self.event.fireEvent()
        self.assertEqual(events, [('second', 'before')])
This test is a generalization of the logrank_test: it can deal with n>2 populations (and should
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/ThreePhaseEventTests.test_synchronousRemovePendingBefore--crossover with--dataset/ETHPy150Open CamDavidsonPilon/lifelines/lifelines/statistics.py/multivariate_logrank_test