class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - _configure_outputs, unstaged with all output sources
docstr_tok: ["RulesEngine","-","_configure_outputs",",","unstaged","with","all","output","sources"]
code: def test_configure_outputs_unstaged_with_all_outputs(self):
      """RulesEngine - _configure_outputs, unstaged with all output sources"""
      rule = Mock(
          outputs_set={"aws-sns:static"},
          dynamic_outputs=[Mock(return_value="aws-sns:dynamic")],
          is_staged=Mock(return_value=False),
      )
      record = {"foo": "bar"}
  
      with patch.object(
          RulesEngine, "_configure_dynamic_outputs"
      ) as configure_dynamic:
          configure_dynamic.return_value = ["aws-sns:dynamic"]
  
          with patch.object(
              RulesEngine, "_check_valid_output"
          ) as check_valid:
              check_valid.return_value = True
  
              outputs = self._rules_engine._configure_outputs(
                  record, rule
              )
  
              # Tests
              rule.is_staged.assert_called()
              configure_dynamic.assert_called()
              configure_dynamic.assert_called_with(record, rule)
              check_valid.assert_called()
              expected = self._rules_engine._required_outputs_set.union(
                  {"aws-sns:static", "aws-sns:dynamic"}
              )
              assert_equal(outputs, expected)
  
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 30 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.test_configure_outputs_unstaged_with_all_outputs() without return types