class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Process, Exception
docstr_tok: ["Rule","-","Process",",","Exception"]
code: def test_rule_process_exception(self, log_mock):
      """Rule - Process, Exception"""
  
      # Create a rule function that will raise an exception
      def test_rule(_):
          raise ValueError("this is a bad rule")
  
      test_rule = rule.Rule(test_rule, logs=["bar"])
      result = test_rule.process(None)
      log_mock.assert_called_with(
          "Encountered error with rule: %s", "test_rule"
      )
      assert_equal(result, False)
  
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 12 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_process_exception(log_mock) without return types