@patch('open_connect.media.models.resize_gif')
    def test_create_thumbnail_animation_no_gifsicle(self, mock_resize):
        mock_resize.return_value = ('', True)
        animatedimage = self.get_animated_image()

        mock_resize.assert_called_once()

        animatedimage.create_thumbnail()

        # Open both, confirm that the thumbnail is identical to the image
        animatedimage.image.open()
        animatedimage.thumbnail.open()

        # Hash both files to confirm they are the same
        image_hash = hashlib.md5(animatedimage.image.read()).hexdigest()
        thumbnail_hash = hashlib.md5(animatedimage.thumbnail.read()).hexdigest()
        self.assertEqual(image_hash, thumbnail_hash)
DRF uses 'non_field_errors' as the key for non-field errors
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_create_thumbnail_animation_no_gifsicle--crossover with--dataset/ETHPy150Open kevin-brown/drf-json-api/tests/test_errors.py/test_drf_non_field_validation_error