def test_rollback_mechanism_should_execute_enabled_stages_in_correct_order(self):
        rollback = self.SomeRollback()

        rollback.enable_stage(stage2)
        rollback.enable_stage(stage3)
        rollback.rollback()

        ok_(stage_execution_queue not in stage1_mock)
        stage2_mock.assert_called_once_with()
        stage3_mock.assert_called_once_with()

        stage2_index = stage_execution_queue.index(stage2_mock)
        stage3_index = stage_execution_queue.index(stage3_mock)

        ok_(stage2_index < stage3_index)
dataset/ETHPy150Open n9code/pylease/tests/test_rollback.py/RollbackTest.test_rollback_mechanism_should_execute_enabled_stages_in_correct_order/swapped operands of `not in`