class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Create Valid Rule
docstr_tok: ["Rule","-","Create","Valid","Rule"]
code: def test_rule_valid(self):
      """Rule - Create Valid Rule"""
      self._create_rule_helper("test_rule")
      assert_equal(list(rule.Rule._rules.keys()), ["test_rule"])
  
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 4 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_valid() without return types