def test_side_of_primary_adjacent_to_other_piece(self): # Check bottom primary = PuzzleLocation(1, 47, 48) other = PuzzleLocation(1, 48, 48) assert PuzzlePieceSide.bottom == Puzzle.get_side_of_primary_adjacent_to_other_piece(primary, other) # Check bottom primary = PuzzleLocation(1, 48, 48) other = PuzzleLocation(1, 47, 48) assert PuzzlePieceSide.top == Puzzle.get_side_of_primary_adjacent_to_other_piece(primary, other) # Check right primary = PuzzleLocation(1, 48, 47) other = PuzzleLocation(1, 48, 48) assert PuzzlePieceSide.right == Puzzle.get_side_of_primary_adjacent_to_other_piece(primary, other) # Check left primary = PuzzleLocation(1, 48, 49) other = PuzzleLocation(1, 48, 48) assert PuzzlePieceSide.left == Puzzle.get_side_of_primary_adjacent_to_other_piece(primary, other)