class_docstr: TestRule class
class_docstr_tok: ["TestRule","class"]
docstr: Rule - Rule Checksum, Bad Indentation
docstr_tok: ["Rule","-","Rule","Checksum",",","Bad","Indentation"]
code: def test_rule_checksum_bad(self, log_mock):
      """Rule - Rule Checksum, Bad Indentation"""
  
      def test_rule(_):
          return False
  
      # Test rule that has bad indentation when loading from source
      rule.Rule(test_rule, logs=["log_type"])
      assert_equal(
          rule.Rule._rules["test_rule"].checksum,
          rule.Rule.CHECKSUM_UNKNOWN,
      )
      log_mock.assert_called_with("Could not checksum rule function")
  
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 18 for calling the TestRule obj's underlying member method code with example usage: obj.test_rule_checksum_bad(log_mock) and returns: False