class_docstr: S3Payload tests
class_docstr_tok: ["S3Payload","tests"]
docstr: S3Payload - Setup
docstr_tok: ["S3Payload","-","Setup"]
code: def setup(self):
      """S3Payload - Setup"""
      self._bucket = "test_bucket_name"
      self._key = "test_object_name"
      self._size = 100
      self._record = self._record_data()
      self._payload = S3Payload(None, self._record)
  
imports: import json
  import gzip
  import os
  import tempfile
  import boto3
  from botocore.exceptions import ClientError
  from mock import patch
  from moto import mock_s3
  from nose.tools import assert_equal, assert_raises
  from pyfakefs import fake_filesystem_unittest
  from streamalert.classifier.payload.s3 import S3Payload, S3PayloadError
label_desc: Use image node_id 1 for calling the TestS3Payload obj's underlying member method code with example usage: obj.setup() without return types