class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - _configure_outputs, unstaged with static outputs
docstr_tok: ["RulesEngine","-","_configure_outputs",",","unstaged","with","static","outputs"]
code: def test_configure_outputs_unstaged_with_static_outputs(self):
      """RulesEngine - _configure_outputs, unstaged with static outputs"""
      rule = Mock(
          outputs_set={"aws-sns:static"},
          dynamic_outputs=None,
          is_staged=Mock(return_value=False),
      )
      record = {"foo": "bar"}
  
      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()
          check_valid.assert_called()
          expected = self._rules_engine._required_outputs_set.union(
              {"aws-sns:static"}
          )
          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 27 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.test_configure_outputs_unstaged_with_static_outputs() without return types