def validate_image_title_ko_test(self): """Image: Validate image (empty title)""" image = Image(description='Description1', url="http://comps.canstockphoto.com/can-stock-photo_csp9177473.jpg") image.validate_and_cache() cached_image = image.image self.assertIsNotNone(cached_image)
def validate_image_404_ko_test(self): """Image: Validate image (ERROR 404)""" image = Image(title='title1', description='Description1', url="http://echaloasuerte.com/asdsad") image.validate_and_cache() cached_image = image.image self.assertIsNotNone(cached_image)
def validate_image_url_ko_test(self): """Image: Validate image (empty URL)""" image = Image(title='title1', description='Description1') image.validate_and_cache() cached_image = image.image self.assertIsNotNone(cached_image)