docstr: LookupTables - Drivers - S3 Driver - Compression
docstr_tok: ["LookupTables","-","Drivers","-","S3","Driver","-","Compression"]
code: def test_compression_decompression():
      """LookupTables - Drivers - S3 Driver - Compression"""
      original_data = "Human is dead; Mismatch"
      driver = S3Driver(
          {"bucket": "bucket", "key": "key", "compression": "gzip"}
      )
  
      compressed_data = Compression.gz_compress(
          driver, original_data.encode()
      )
      decompressed_data = Compression.gz_decompress(
          driver, compressed_data
      )
  
      assert_equal(original_data, decompressed_data.decode())
  
imports: from datetime import datetime
  import json
  import zlib
  import botocore
  from botocore.exceptions import ReadTimeoutError
  from mock import patch, ANY, MagicMock
  from moto import mock_s3
  from nose.tools import assert_equal, assert_raises
  from streamalert.shared.config import load_config
  from streamalert.shared.lookup_tables.driver_s3 import S3Driver, Compression, S3Adapter
  from streamalert.shared.lookup_tables.drivers_factory import construct_persistence_driver
  from streamalert.shared.lookup_tables.errors import LookupTablesCommitError, LookupTablesInitializationError
  from tests.unit.helpers.aws_mocks import put_mock_s3_object
label_desc: Use image node_id 1 for calling the TestCompression obj's underlying member method code with example usage: obj.test_compression_decompression() without return types