docstr: WrappedFunctionPublisher - Ensure function is executed properly
docstr_tok: ["WrappedFunctionPublisher","-","Ensure","function","is","executed","properly"]
code: def test_wrapped_function_publisher():
      """WrappedFunctionPublisher - Ensure function is executed properly"""
      publisher = WrappedFunctionPublisher(sample_publisher_5)
  
      alert = get_alert()
      publication = publisher.publish(alert, {})
  
      expectation = {"test4": True}
      assert_equal(publication, expectation)
  
imports: from mock import patch
  from nose.tools import assert_true, assert_equal, assert_false
  from streamalert.alert_processor.helpers import _assemble_alert_publisher_for_output
  from streamalert.shared.publisher import AlertPublisherRepository, AlertPublisher, CompositePublisher, DefaultPublisher, Register, WrappedFunctionPublisher
  from tests.unit.streamalert.alert_processor.helpers import get_alert
label_desc: Use image node_id 1 for calling the TestWrappedFunctionPublisher obj's underlying member method code with example usage: obj.test_wrapped_function_publisher() without return types