class_docstr: Test class for AthenaPartitioner when output data in Parquet format
docstr: AthenaPartitioner - Get Partitions From Keys, Bad Key
docstr_tok: ["AthenaPartitioner","-","Get","Partitions","From","Keys",",","Bad","Key"]
code: def test_get_partitions_from_keys_error(self, log_mock):
      """AthenaPartitioner - Get Partitions From Keys, Bad Key"""
      bad_key = b"bad_match_string"
      self._partitioner._s3_buckets_and_keys = {
          "unit-test-streamalerts": {bad_key}
      }
  
      result = self._partitioner._get_partitions_from_keys()
  
      log_mock.assert_called_with(
          "The key %s does not match any regex, skipping",
          bad_key.decode("utf-8"),
      )
      assert_equal(result, dict())
  
imports: import json
  import os
  from mock import Mock, patch, call
  from nose.tools import assert_equal, assert_true
  from streamalert.athena_partitioner.main import AthenaPartitioner
  from streamalert.shared.config import load_config
  from tests.unit.helpers.aws_mocks import MockAthenaClient
label_desc: Use image node_id 5 for calling the TestAthenaPartitioner obj's underlying member method code with example usage: obj.test_get_partitions_from_keys_error(log_mock) without return types