'Test that post_processing behaves correctly.
Files that are alterable should always be post-processed; files that
aren\'t should be skipped.
collectstatic has already been called once in setUp() for this testcase,
therefore we check by verifying behavior on a second run.'

def test_post_processing(self):

    collectstatic_args = {u'interactive': False, u'verbosity': u'0', u'link': False, u'clear': False, u'dry_run': False, u'post_process': True, u'use_default_ignore_patterns': True, u'ignore_patterns': [u'*.ignoreme']}
    collectstatic_cmd = CollectstaticCommand()
    collectstatic_cmd.set_options(**collectstatic_args)
    stats = collectstatic_cmd.collect()
    self.assertIn(os.path.join(u'cached', u'css', u'window.css'), stats[u'post_processed'])
    self.assertIn(os.path.join(u'cached', u'css', u'img', u'window.png'), stats[u'unmodified'])
    self.assertIn(os.path.join(u'test', u'nonascii.css'), stats[u'post_processed'])
