Пример #1
0
 def test_remove_tile(self):
     board = Board(2, 2)
     num_fish = 3
     row, col = [1, 1]
     board.create_board_without_holes(num_fish)
     tile = board.tiles[col][row]
     self.assertTrue(tile.is_active)
     self.assertEqual(tile.fish, num_fish)
     board.remove_tile(row, col)
     self.assertEqual(tile.fish, 0)
     self.assertFalse(tile.is_active)
Пример #2
0
 def test_remove_tile(self):
     board = Board(3, 3)
     self.assertTrue(board.tiles[0][0].is_active)
     board.remove_tile(0, 0)
     self.assertFalse(board.tiles[0][0].is_active)