class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - dynamic_outputs, check dynamic_outputs_set
docstr_tok: ["Rule","-","dynamic_outputs",",","check","dynamic_outputs_set"]
code: def test_rule_dynamic_outputs_set(self):
      """Rule - dynamic_outputs, check dynamic_outputs_set"""
  
      def dynamic_function():
          return "aws-sns:test"
  
      self._create_rule_helper(
          "test_rule",
          options={
              "logs": ["log_type_01"],
              "dynamic_outputs": [dynamic_function],
          },
      )
      result = rule.Rule._rules["test_rule"]
  
      # Verify outputs is configured
      assert_equal(result.dynamic_outputs, [dynamic_function])
      assert_true(isinstance(result.dynamic_outputs_set, set))
      assert_equal(result.dynamic_outputs_set, {dynamic_function})
  
imports: import hashlib
  from mock import patch
  from nose.tools import assert_equal, assert_true, raises
  from streamalert.shared import rule, rule_table
label_desc: Use image node_id 27 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_dynamic_outputs_set() and returns: str