Exemplo 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)
Exemplo n.º 2
0
Arquivo: tests.py Projeto: 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)
Exemplo 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])
Exemplo n.º 4
0
Arquivo: tests.py Projeto: 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])