class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Get Rules, For Log Type
docstr_tok: ["Rule","-","Get","Rules",",","For","Log","Type"]
code: def test_get_rules_for_log_type(self):
      """Rule - Get Rules, For Log Type"""
      self._create_rule_helper("rule_01")
      self._create_rule_helper("rule_02", {"logs": ["log_type_02"]})
      self._create_rule_helper(
          "rule_03", {"logs": ["log_type_01", "log_type_02"]}
      )
      self._create_rule_helper("rule_04", {"logs": ["log_type_03"]})
  
      # Check for 4 total rules
      assert_equal(len(rule.Rule._rules), 4)
  
      # Two rules should have log_type_01, and two should have log_type_02
      assert_equal(len(rule.Rule.rules_for_log_type("log_type_01")), 2)
      assert_equal(len(rule.Rule.rules_for_log_type("log_type_02")), 2)
  
      # Check to make sure the fourth rule has log_type_03
      result = rule.Rule.rules_for_log_type("log_type_03")
      assert_equal(len(result), 1)
      assert_equal(result[0].name, "rule_04")
  
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 23 for calling the TestRule obj's underlying member method code with example usage: obj.test_get_rules_for_log_type() without return types