from naja.constants import BITS, MOVES
from naja.gameboard import GameBoard, LocationCard
+from naja.options import parse_args
from naja.player import Player
from naja import actions
class TestActions(TestCase):
+ def setUp(self):
+ parse_args([])
+
def make_player(self, *bits):
player_bits = 0
for bit in bits:
def make_board(self, player_bits=None, locations=None):
if locations is None:
locations = [{'actions': []}]
- board = GameBoard.new_game(locations)
+ board = GameBoard.new_game({'cards': locations})
if player_bits is not None:
board.player.bits.bits = 0
board.player.bits.set_bits(player_bits)