@unittest.skipIf(
        settings.INSTALLED_APPS not in 'easy_thumbnails.optimize',
        'optimize app not installed')
    @unittest.skipIf(LogCapture is None, 'testfixtures not installed')
    def test_postprocessor_fail(self):
        """use a mock image optimizing post processor doing nothing"""
        settings.THUMBNAIL_OPTIMIZE_COMMAND = {
            'png': 'easy_thumbnails/tests/mockoptim_fail.py {filename}'}
        with LogCapture() as logcap:
            self.ext_thumbnailer.thumbnail_extension = 'png'
            self.ext_thumbnailer.get_thumbnail({'size': (10, 10)})
            actual = tuple(logcap.actual())[0]
            self.assertEqual(actual[0], 'easy_thumbnails.optimize')
            self.assertEqual(actual[1], 'ERROR')
            self.assertRegex(
                actual[2], r'^Command\ .+returned non-zero exit status 1$')
dataset/ETHPy150Open SmileyChris/easy-thumbnails/easy_thumbnails/tests/test_files.py/FilesTest.test_postprocessor_fail/swapped operands of `not in`