Exemplo n.º 1
0
def test_ask_hidden_response(io):
    question = Question("What time is it?", "2PM")
    question.hide()
    io.set_input("8AM\n")

    assert "8AM" == question.ask(io)
    assert "What time is it? " == io.fetch_error()
Exemplo n.º 2
0
    def ask_hidden(self, question):
        question = Question(question)
        question.hide()

        return self.ask_question(question)
Exemplo n.º 3
0
    def ask_hidden(self, question):
        question = Question(question)
        question.hide()

        return self.ask_question(question)