'post_processing indicates the origin of the error when it fails.'

@override_settings(STATICFILES_DIRS=[os.path.join(TEST_ROOT, 'project', 'faulty')], STATICFILES_FINDERS=['django.contrib.staticfiles.finders.FileSystemFinder'])
def test_post_processing_failure(self):

    finders.get_finder.cache_clear()
    err = StringIO()
    with self.assertRaises(Exception):
        call_command('collectstatic', interactive=False, verbosity=0, stderr=err)
    self.assertEqual("Post-processing    'faulty.css'    failed!\n\n", err.getvalue())
    self.assertPostCondition()
