class_docstr: Test class for FirehoseClient
docstr: FirehoseClient - Record Batches, Max Batch Size
docstr_tok: ["FirehoseClient","-","Record","Batches",",","Max","Batch","Size"]
code: def test_record_batches_max_batch_size(self):
      """FirehoseClient - Record Batches, Max Batch Size"""
      records = [
          {"key_{}".format(i): "test" * 100000} for i in range(10)
      ]
      result = list(
          FirehoseClient._record_batches(records, "test_function_name")
      )
      assert_equal(len(result), 2)
      assert_equal(len(result[0]), 9)
      assert_equal(len(result[1]), 1)
      batch_size_01 = sum(len(rec) for rec in result[0])
      batch_size_02 = sum(len(rec) for rec in result[1])
      assert_equal(batch_size_01 < FirehoseClient.MAX_BATCH_SIZE, True)
      assert_equal(batch_size_02 < FirehoseClient.MAX_BATCH_SIZE, True)
      assert_equal(
          batch_size_01 + batch_size_02 > FirehoseClient.MAX_BATCH_SIZE,
          True,
      )
  
imports: from botocore.exceptions import ClientError
  from mock import Mock, patch
  from nose.tools import assert_equal
  from streamalert.shared.firehose import FirehoseClient
label_desc: Use image node_id 9 for calling the TestFirehoseClient obj's underlying member method code with example usage: obj.test_record_batches_max_batch_size() without return types