Esempio n. 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)
Esempio n. 2
0
File: tests.py Progetto: 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)
Esempio n. 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])
Esempio n. 4
0
File: tests.py Progetto: 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])