class_docstr: S3Payload tests
class_docstr_tok: ["S3Payload","tests"]
docstr: Helper for getting record data
docstr_tok: ["Helper","for","getting","record","data"]
code: def _record_data(self):
      """Helper for getting record data"""
      return {
          "awsRegion": "us-east-1",
          "s3": {
              "bucket": {"name": self._bucket},
              "object": {"key": self._key, "size": self._size},
          },
      }
  
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 2 for calling the TestS3Payload obj's underlying member method code with example usage: obj._record_data() and returns: dict