Exemple #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()
Exemple #2
0
    def ask_hidden(self, question):
        question = Question(question)
        question.hide()

        return self.ask_question(question)
Exemple #3
0
    def ask_hidden(self, question):
        question = Question(question)
        question.hide()

        return self.ask_question(question)