'If the C{opener} passed to L{ConsoleUI} raises an exception, that
exception will fail the L{Deferred} returned from L{ConsoleUI.prompt}.'

def test_promptOpenFailed(self):

    def raiseIt():
        raise IOError()
    ui = ConsoleUI(raiseIt)
    d = ui.prompt('This    is    a    test.')
    return self.assertFailure(d, IOError)
