

def test_run(self):
    '\n        Test that processors and optimizers run\n        '
    self.site.external_manager.register_processor(DummyProc)
    self.site.external_manager.register_optimizer(DummyOptimizer)
    self.site.external_manager.register_optimizer(UnrelatedOptimizer)
    self.site.build()
    self.assertEqual(2, len(TestExternal.runs))
    (proc, opti) = TestExternal.runs
    self.assertIsInstance(proc, DummyProc)
    opti.assertIsInstance(opti, DummyOptimizer)

dataset/ETHPy150Open koenbok/Cactus/cactus/tests/test_external.py TestStaticExternals.test_run/VarMisuse@86/126 `self`->`opti`