class_docstr: Test class for SQSClient
class_docstr_tok: ["Test","class","for","SQSClient"]
docstr: SQSClient - Segment Records, Record Too Large
docstr_tok: ["SQSClient","-","Segment","Records",",","Record","Too","Large"]
code: def test_segment_records_one_too_large(self, log_mock):
      """SQSClient - Segment Records, Record Too Large"""
      # A record that exceeds max size and one that does not
      large_value = "value" * 52428
      records = [
          '{{"key":"{}"}}'.format(large_value),
          '{"key":"value"}',
      ]
      result = list(SQSClient._segment_records(records))
      expected_result = [(['{"key":"value"}'], 1)]
      assert_equal(result, expected_result)
      log_mock.assert_called_with(
          "Record is too large to send to SQS:\n%s", records[0]
      )
  
imports: from botocore.exceptions import ClientError
  from mock import Mock, patch
  from nose.tools import assert_equal, assert_raises
  import streamalert.classifier.clients.sqs
  from streamalert.classifier.clients.sqs import SQSClient, SQSClientError
label_desc: Use image node_id 8 for calling the TestSQSClient obj's underlying member method code with example usage: obj.test_segment_records_one_too_large(log_mock) without return types