class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - Setup
docstr_tok: ["RulesEngine","-","Setup"]
code: def setup(self):
      """RulesEngine - Setup"""
      with patch.object(rules_engine_module, "Alert"), patch.object(
          rules_engine_module, "AlertForwarder"
      ), patch.object(rules_engine_module, "RuleTable"), patch.object(
          rules_engine_module, "ThreatIntel"
      ), patch.dict(
          "os.environ", {"STREAMALERT_PREFIX": "test_prefix"}
      ), patch(
          "streamalert.rules_engine.rules_engine.load_config",
          Mock(return_value=mock_conf()),
      ):
          self._rules_engine = RulesEngine()
  
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 1 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.setup() without return types