Ejemplo n.º 1
0
 def test_image_style_crop_thumbnail_portrait(self):
     """ Test crop-thumbnail with large image portrait
     :return: None
     """
     ninecms_extras.image_style(self.img_big_portrait.image, 'blog_style')
     assert_image(self, None, self.img_big_portrait, '350x226',
                  'blog_style')
Ejemplo n.º 2
0
 def test_image_style_thumbnail_with_large(self):
     """ Test thumbnail with large image
     :return: None
     """
     ninecms_extras.image_style(self.img_big.image, 'thumbnail')
     assert_image(self, None, self.img_big, '150x73', 'thumbnail')
Ejemplo n.º 3
0
 def test_image_style_upscale(self):
     """ Test thumbnail-upscale
     :return: None
     """
     ninecms_extras.image_style(self.img.image, 'thumbnail_upscale')
     assert_image(self, None, self.img, '150x150', 'thumbnail_upscale')
Ejemplo n.º 4
0
 def test_image_style_crop_thumbnail_portrait(self):
     """ Test crop-thumbnail with large image portrait
     :return: None
     """
     ninecms_extras.image_style(self.img_big_portrait.image, 'blog_style')
     assert_image(self, None, self.img_big_portrait, '350x226', 'blog_style')
Ejemplo n.º 5
0
 def test_image_style_thumbnail_with_large(self):
     """ Test thumbnail with large image
     :return: None
     """
     ninecms_extras.image_style(self.img_big.image, 'thumbnail')
     assert_image(self, None, self.img_big, '150x73', 'thumbnail')
Ejemplo n.º 6
0
 def test_image_style_upscale(self):
     """ Test thumbnail-upscale
     :return: None
     """
     ninecms_extras.image_style(self.img.image, 'thumbnail_upscale')
     assert_image(self, None, self.img, '150x150', 'thumbnail_upscale')