def test_height_too_high(self): with pytest.warns(UserWarning): height = MAX_HEIGHT_INCH + 1 assert lp.figure_size(height=height) == (self.width, MAX_HEIGHT_INCH)