class_docstr: Tests the S3Driver
  
  This was largely ported over from test_lookup_tables.py from the old implementation.
class_docstr_tok: ["Tests","the","S3Driver","This","was","largely","ported","over","from","test_lookup_tables.py","from","the","old","implementation","."]
code: def _put_mock_tables(self):
      put_mock_s3_object(
          "bucket_name",
          "foo.json",
          json.dumps(
              {
                  "key_1": "foo_1",
                  "key_2": "foo_2",
              }
          ),
      )
      put_mock_s3_object(
          "bucket_name",
          "bar.json",
          zlib.compress(
              json.dumps(
                  {
                      "key_1": "compressed_bar_1",
                      "key_2": "compressed_bar_2",
                  }
              ).encode()
          ),
      )
  
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 2 for calling the TestS3Driver obj's underlying member method code with example usage: obj._put_mock_tables() without return types