class_docstr: Test class for ParserBase classmethods
class_docstr_tok: ["Test","class","for","ParserBase","classmethods"]
docstr: ParserBase - Matches Log Patterns, Invalid Key
docstr_tok: ["ParserBase","-","Matches","Log","Patterns",",","Invalid","Key"]
code: def test_matches_log_patterns_invalid_key(self, log_mock):
      """ParserBase - Matches Log Patterns, Invalid Key"""
      record = {"key": "value"}
      patterns = {"not_key": "*pattern"}
      assert_equal(
          ParserBase._matches_log_patterns(record, patterns), False
      )
      log_mock.assert_any_call(
          "Declared log pattern key [%s] does exist in record:\n%s",
          "not_key",
          record,
      )
  
imports: import json
  from mock import patch
  from nose.tools import assert_equal
  import streamalert.classifier.parsers
  from streamalert.classifier.parsers import ParserBase
label_desc: Use image node_id 15 for calling the TestParserBaseClassMethods obj's underlying member method code with example usage: obj.test_matches_log_patterns_invalid_key(log_mock) without return types