class_docstr: Test the TestEvent class
class_docstr_tok: ["Test","the","TestEvent","class"]
docstr: StreamAlert CLI - TestEvent Apply Service Template, Kinesis Compressed
docstr_tok: ["StreamAlert","CLI","-","TestEvent","Apply","Service","Template",",","Kinesis","Compressed"]
code: def test_apply_service_template_kinesis_compressed(self):
      """StreamAlert CLI - TestEvent Apply Service Template, Kinesis Compressed"""
      event = basic_test_event_data(service="kinesis")
      event["compress"] = True
      kinesis_event = TestEvent(event)
      result = kinesis_event._apply_service_template(b"test")
      assert_equal(result["kinesis"]["data"], b"eJwrSS0uAQAEXQHB")
  
imports: from mock import patch
  from nose.tools import assert_equal, nottest
  from streamalert_cli.test.event import TestEvent
  from tests.unit.streamalert_cli.test.helpers import basic_test_event_data
label_desc: Use image node_id 24 for calling the TestTestEvent obj's underlying member method code with example usage: obj.test_apply_service_template_kinesis_compressed() without return types