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()
def ask_hidden(self, question): question = Question(question) question.hide() return self.ask_question(question)