def test_possibleJumps(self): black = Pieces.Black() board = {1: black, 6: self.red} self.assertEqual(Checkers.possibleJumps(1, board), [{10: black}])
def test_possibleJumps_wrongDoubleJump(self): black = Pieces.Black() board = {1: black, 6: self.red, 9: self.red} expectedBoard = [{9: self.red, 10: black}] self.assertEqual(Checkers.possibleJumps(1, board), expectedBoard)