class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - _call_dynamic_output_function, output returns list
docstr_tok: ["RulesEngine","-","_call_dynamic_output_function",",","output","returns","list"]
code: def test_call_dynamic_output_function_list(self):
      """RulesEngine - _call_dynamic_output_function, output returns list"""
      dynamic_output_function = Mock(
          __name__="test", return_value=["test"]
      )
  
      record = {"foo": "bar"}
      dynamic_outputs = (
          self._rules_engine._call_dynamic_output_function(
              dynamic_output_function, "test", [record]
          )
      )
  
      assert_equal(dynamic_outputs, ["test"])
      dynamic_output_function.assert_called()
      dynamic_output_function.assert_called_with(record)
  
imports: from datetime import datetime, timedelta
  from mock import Mock, patch, PropertyMock
  from nose.tools import assert_equal, assert_false, assert_true
  from publishers.community.generic import remove_internal_fields
  from streamalert.shared.publisher import AlertPublisher, Register, DefaultPublisher
  import streamalert.rules_engine.rules_engine
  from streamalert.rules_engine.rules_engine import RulesEngine
label_desc: Use image node_id 21 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.test_call_dynamic_output_function_list() without return types