15 lines
380 B
Python
15 lines
380 B
Python
import unittest
|
|
from binding.python_c_ffi import Board
|
|
from binding.python_c_ffi import ChessFFI
|
|
|
|
|
|
class ChessLibTestBase(unittest.TestCase):
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.chess_ffi = ChessFFI()
|
|
cls.chess_ffi.init_attack_cache()
|
|
|
|
|
|
def setUp(self):
|
|
# This should be an empty board for each test in the suite.
|
|
self.board = Board() |