def test_discard(self):
        self.site.external_manager.register_processor(DiscardingProcessor)
        self.site.external_manager.register_optimizer(SourceOptimizer)

        self.site.build()

        self.assertEqual(0, len(TestExternal.runs))  # Check that our optimizer does not run
        self.assertFileDoesNotExist(os.path.join(self.site.build_path, "static", "test.dst"))
        self.assertFileDoesNotExist(os.path.join(self.site.build_path, "static", "test.src"))

        for static in self.site.static():
            if static.src_filename == self.dummy_static:
                self.assertTrue(static.discarded)
Override to set the channel's queue_auto_delete property.
dataset/ETHPy150Open koenbok/Cactus/cactus/tests/test_external.py/TestStaticExternals.test_discard--crossover with--dataset/ETHPy150Open ooici/pyon/pyon/ion/endpoint.py/ProcessEventSubscriber._create_channel