def test_add_result(self): processor_generic_exception = _instantiate(MockResultProcessor1) processor_wa_error = _instantiate(MockResultProcessor2) processor = _instantiate(MockResultProcessor4) # adding the results processor to the result manager manager = ResultManager() assert_false(manager.processors) # adding the results processor to the result manager manager.install(processor_generic_exception) manager.install(processor_wa_error) manager.install(processor) assert_equal(len(manager.processors), 3) manager.add_result(None, None) assert_true(processor.is_invoked)