コード例 #1
0
 def test_put_already_filled(self):
     board = Board()
     x, y = 1, 1
     board.put(x, y, Sign.x)
     self.assertRaises(IndexError, board.put, x, y, Sign.x)
コード例 #2
0
ファイル: tests.py プロジェクト: jchmura/PiE
 def test_put_already_filled(self):
     board = Board()
     x, y = 1, 1
     board.put(x, y, Sign.x)
     self.assertRaises(IndexError, board.put, x, y, Sign.x)
コード例 #3
0
 def test_put(self):
     board = Board()
     x, y = 2, 1
     board.put(x, y, Sign.x)
     self.assertEqual(Sign.x, board.board[x][y])
コード例 #4
0
ファイル: tests.py プロジェクト: jchmura/PiE
 def test_put(self):
     board = Board()
     x, y = 2, 1
     board.put(x, y, Sign.x)
     self.assertEqual(Sign.x, board.board[x][y])