class_docstr: Tests for RulesEngine
class_docstr_tok: ["Tests","for","RulesEngine"]
docstr: RulesEngine - Process Subkeys
docstr_tok: ["RulesEngine","-","Process","Subkeys"]
code: def test_process_subkeys(self):
      """RulesEngine - Process Subkeys"""
      rule = Mock(req_subkeys={"data": ["location"]}, name="test_rule")
  
      record = {
          "host": "host1.web.prod.net",
          "data": {"location": "us-west-2"},
      }
  
      result = RulesEngine._process_subkeys(record, rule)
      assert_equal(result, True)
  
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 10 for calling the TestRulesEngine obj's underlying member method code with example usage: obj.test_process_subkeys() without return types