Exemplo n.º 1
0
 def test_portrait_fit(self):
     self.assertEqual((300, 200), get_image_fitting(600, 400, 300, 1024))
Exemplo n.º 2
0
 def test_zero_height_landscape_fit(self):
     self.assertEqual((1024, 0), get_image_fitting(600, 0, 1024, 300))
Exemplo n.º 3
0
 def test_landscape_fit(self):
     self.assertEqual((450, 300), get_image_fitting(600, 400, 1024, 300))