class_docstr: Class for handling testing of the app integration output batcher
docstr: App Integration Batcher - Send Logs to StreamAlert, Successful
docstr_tok: ["App","Integration","Batcher","-","Send","Logs","to","StreamAlert",",","Successful"]
code: def test_send_logs_lambda_success(self, log_mock):
      """App Integration Batcher - Send Logs to StreamAlert, Successful"""
      log_count = 5
      logs = [
          {
              "timestamp": "time",
              "eventtype": "authentication",
              "host": "host",
          }
          for _ in range(log_count)
      ]
  
      result = self.batcher._send_logs_to_lambda(logs)
  
      assert_true(result)
      log_mock.assert_called_with(
          "Sent %d logs to '%s' with Lambda request ID '%s'",
          log_count,
          "destination_func",
          "9af88643-7b3c-43cd-baae-addb73bb4d27",
      )
  
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 2 for calling the TestAppBatcher obj's underlying member method code with example usage: obj.test_send_logs_lambda_success(log_mock) without return types