Going further, you could parameterize _getUserConfirmation's use of raw_input and supply a callable that returned a pre-programmed sequence of answers.
Going further, you could parameterize _getUserConfirm ation's use of
raw_input and supply a callable that returned a pre-programmed
sequence of answers.