コード例 #1
0
 def test_scale_out_of_bounds_high(self):
     drawing = Drawing(1920, 1080)
     drawing.scale_factor = 3
     drawing.scale(10)
     assert drawing.scale_factor == 3
コード例 #2
0
 def test_scale_out_of_bounds_low(self):
     drawing = Drawing(1920, 1080)
     drawing.scale_factor = 0.5
     drawing.scale(-10)
     assert drawing.scale_factor == 0.5