def test_validate_input4(self, _): game = TicTacGame() with self.assertRaises(ValueError): game.validate_input()
def test_validate_input2(self, _): game = TicTacGame() with self.assertRaises(IndexError): game.validate_input()
def test_validate_input3(self, _): game = TicTacGame() with self.assertRaises(TakenError): game.board[0][1] = 'X' game.validate_input()
def test_validate_input1(self, _): game = TicTacGame() x, y = game.validate_input() self.assertEqual([x, y], [1, 2])