class_docstr: Test cleanup, including shredding of the tmp directory
class_docstr_tok: ["Test","cleanup",",","including","shredding","of","the","tmp","directory"]
docstr: S3Payload - Cleanup
docstr_tok: ["S3Payload","-","Cleanup"]
code: def test_cleanup(self, subproc_mock, os_mock):
      """S3Payload - Cleanup"""
      with patch.dict(
          os.environ, {"LAMBDA_RUNTIME_DIR": "/var/runtime"}
      ):
          S3Payload._cleanup()
          subproc_mock.assert_called_with(
              [
                  "shred",
                  "--force",
                  "--iterations=1",
                  "--remove",
                  self.temp_file,
              ]
          )
  
      os_mock.assert_called_with(self.temp_dir)
  
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 TestCleanup obj's underlying member method code with example usage: obj.test_cleanup(subproc_mock, os_mock) without return types