class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Create Rule, Rule Already Exists
docstr_tok: ["Rule","-","Create","Rule",",","Rule","Already","Exists"]
code: def test_rule_exists(self):
      """Rule - Create Rule, Rule Already Exists"""
      # Rules must either have `logs` or `datatypes` defined
      self._create_rule_helper("test_rule")
      self._create_rule_helper("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 6 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_exists() without return types