@mock.patch.object(settings._wrapped, 'OPTIPNG_PATH', '')
    @mock.patch.object(kitsune.upload.tasks.subprocess, 'call')
    def test_compressed_image_animated(self, call):
        image = self._uploaded_image(testfile="animated.gif")
        compress_image(image, 'file')
        assert not call.called
uploaded animated gif image is not compressed.
dataset/ETHPy150Open mozilla/kitsune/kitsune/upload/tests/test_tasks.py/CompressImageTestCase.test_compressed_image_animated