def METHOD_NAME(self):
    confirm = mock.Mock(spec=click.confirm)
    confirm.side_effect = click.Abort()
    ui = utils.UI(self.out, self.err, confirm)
    with pytest.raises(utils.AbortedError):
        ui.confirm("Confirm?")