Esempio n. 1
0
 def test_get_thumbnail_size_portrait(self):
     w, h = _get_thumbnail_size(800, 1000)
     self.assertEquals(93, h, 'The height is not correct')
     self.assertEquals(75, w, 'The width is not correct')
Esempio n. 2
0
 def test_get_thumbnail_size_square(self):
     w, h = _get_thumbnail_size(1232, 1232)
     self.assertEquals(w, h, 'The width is not equal to the height')
Esempio n. 3
0
 def test_get_thumbnail_size_landscape(self):
     w, h = _get_thumbnail_size(1000, 800)
     self.assertEquals(75, h, 'The height is not correct')
     self.assertEquals(93, w, 'The width is not correct')