class_docstr: S3Payload tests
class_docstr_tok: ["S3Payload","tests"]
docstr: S3Payload - GZ Reader, Non-gzip
docstr_tok: ["S3Payload","-","GZ","Reader",",","Non-gzip"]
code: def test_gz_reader_non_gz(self):
      """S3Payload - GZ Reader, Non-gzip"""
      record = {"key": "value"}
      json_line = (
          json.dumps(record, separators=(",", ":")) + "\n"
      ).encode()
      with tempfile.SpooledTemporaryFile(max_size=10 * 1024) as reader:
          reader.writelines([json_line, json_line])
          reader.seek(0)
          non_gz_reader = S3Payload._gz_reader(reader)
          assert_equal(reader == non_gz_reader, True)
  
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 11 for calling the TestS3Payload obj's underlying member method code with example usage: obj.test_gz_reader_non_gz() without return types