class_docstr: Class for handling testing of the app integration output batcher
docstr: App Integration Batcher - Segment and Send Logs to StreamAlert, Multi-segment
docstr_tok: ["App","Integration","Batcher","-","Segment","and","Send","Logs","to","StreamAlert",",","Multi-segment"]
code: def test_segment_and_send_multi(self, batcher_mock):
      """App Integration Batcher - Segment and Send Logs to StreamAlert, Multi-segment"""
      batcher_mock.side_effect = [False, True, True, True]
      logs = [
          {
              "timestamp": "time",
              "eventtype": "authentication",
              "host": "host",
          }
          for _ in range(6000)
      ]
      self.batcher._segment_and_send(logs)
  
      assert_equal(batcher_mock.call_count, 4)
  
file_path: streamalert/tests/unit/streamalert/apps/test_batcher.py
imports: import os
  from botocore.exceptions import ClientError
  from mock import patch
  from nose.tools import assert_equal, assert_false, assert_true, raises
  from streamalert.apps.batcher import Batcher
  from tests.unit.streamalert.apps.test_helpers import MockLambdaClient
label_desc: Use image node_id 7 for calling the TestAppBatcher obj's underlying member method code with example usage: obj.test_segment_and_send_multi(batcher_mock) without return types