class_docstr: StreamPayload tests
class_docstr_tok: ["StreamPayload","tests"]
docstr: StreamPayload - Load from Raw Record, SNS S3 Event
docstr_tok: ["StreamPayload","-","Load","from","Raw","Record",",","SNS","S3","Event"]
code: def test_load_from_raw_record_sns_s3(self):
      """StreamPayload - Load from Raw Record, SNS S3 Event"""
      s3_record = {"s3": {"bucket": {"name": "test_bucket_name"}}}
      record = {
          "Sns": {
              "Type": "Notification",
              "Subject": "Amazon S3 Notification",
              "TopicArn": "arn:aws:sns:us-east-1:123456789012:test_topic_arn",
              "Message": json.dumps({"Records": [s3_record]}),
          }
      }
      with patch.object(RegisterInput, "load_for_service") as load_mock:
          StreamPayload.load_from_raw_record(record)
          load_mock.assert_called_with(
              "s3", "test_bucket_name", s3_record
          )
  
file_path: streamalert/tests/unit/streamalert/classifier/payload/test_payload_base.py
imports: import json
  from mock import patch
  from nose.tools import assert_equal
  from streamalert.classifier.payload.payload_base import RegisterInput, StreamPayload
label_desc: Use image node_id 9 for calling the TestStreamPayload obj's underlying member method code with example usage: obj.test_load_from_raw_record_sns_s3() without return types