def set_rotation(self, rotation):
        rotation = int(rotation)

        # Map user angle to Excel angle.
        if rotation == 270:
            rotation = 255
        elif -90 <= rotation <= 90:
            if rotation < 0:
                rotation = -rotation + 90
        else:
            raise Exception(
                "Rotation rotation outside range: -90 <= angle <= 90")

        self.rotation = rotation
Test get all
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/format.py/Format.set_rotation--crossover with--dataset/ETHPy150Open nvbn/coviolations_web/tasks/tests/test_resources.py/TaskResourceCase.test_get_all