示例#1
0
 def test_black_piece_cannot_move_northwest(self):
     piece = Piece("black", 10)
     assert not piece.move(Direction.NW)
示例#2
0
 def test_white_piece_can_move_northwest(self):
     piece = Piece("white", 10)
     assert piece.move(Direction.NW)
示例#3
0
 def test_black_piece_can_move_southwest(self):
     piece = Piece("black", 10)
     assert piece.move(Direction.SW)
示例#4
0
 def test_white_piece_cannot_move_southwest(self):
     piece = Piece("white", 10)
     assert not piece.move(Direction.SW)