Ejemplo n.º 1
0
    def test_ask_binary_question_with_N_returns_true(self):
        result = tictactoe.ask_binary_question(lambda: "N")

        self.assertEqual(result, False)
Ejemplo n.º 2
0
    def test_ask_binary_question_with_invalid_returns_none(self):
        result = tictactoe.ask_binary_question(lambda: "m")

        self.assertIsNone(result)