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