projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Those did nothing
[naja.git]
/
naja
/
tests
/
test_actions.py
diff --git
a/naja/tests/test_actions.py
b/naja/tests/test_actions.py
index 14d5f0e6e2f8efd56b3f926c510ce94ea2003dfe..891936799d4ab0827bf9aeeb5c6a781e321a3a2b 100644
(file)
--- a/
naja/tests/test_actions.py
+++ b/
naja/tests/test_actions.py
@@
-190,17
+190,21
@@
class TestActions(TestCase):
def test_AllowKnightMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
def test_AllowKnightMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
- actions.AllowChessMove(set([BITS.RED, BITS.BLUE]), chesspiece="KNIGHT").perform_action(board, None)
+ actions.AllowChessMove(
+ set([BITS.RED, BITS.BLUE]), chesspiece="KNIGHT"
+ ).perform_action(board, None)
self.assertEqual(board.player.movement_mode, MOVES.KNIGHT)
self.assertEqual(board.player.movement_mode, MOVES.KNIGHT)
-
def test_AllowBishopMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
def test_AllowBishopMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
- actions.AllowChessMove(set([BITS.RED, BITS.BLUE]), chesspiece="BISHOP").perform_action(board, None)
+ actions.AllowChessMove(
+ set([BITS.RED, BITS.BLUE]), chesspiece="BISHOP"
+ ).perform_action(board, None)
self.assertEqual(board.player.movement_mode, MOVES.BISHOP)
self.assertEqual(board.player.movement_mode, MOVES.BISHOP)
-
def test_AllowCastleMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
def test_AllowCastleMove(self):
board = self.make_board(player_bits=[BITS.RED, BITS.BLUE])
- actions.AllowChessMove(set([BITS.RED, BITS.BLUE]), chesspiece="CASTLE").perform_action(board, None)
+ actions.AllowChessMove(
+ set([BITS.RED, BITS.BLUE]), chesspiece="CASTLE"
+ ).perform_action(board, None)
self.assertEqual(board.player.movement_mode, MOVES.CASTLE)
self.assertEqual(board.player.movement_mode, MOVES.CASTLE)