class_docstr: Test class to test ThreatStream functionalities
class_docstr_tok: ["Test","class","to","test","ThreatStream","functionalities"]
docstr: ThreatStream - Process Raw IOC Data
docstr_tok: ["ThreatStream","-","Process","Raw","IOC","Data"]
code: def test_process_data(self):
      """ThreatStream - Process Raw IOC Data"""
      raw_data = [
          self._get_fake_intel("malicious_domain.com", "ioc_source"),
          self._get_fake_intel("malicious_domain2.com", "ioc_source2"),
          # this will get filtered out
          self._get_fake_intel(
              "malicious_domain3.com", "bad_source_ioc"
          ),
      ]
      self.threatstream._config["ioc_filters"] = {"ioc_source"}
      processed_data = self.threatstream._process_data(raw_data)
      expected_result = [
          {
              "value": "malicious_domain.com",
              "itype": "c2_domain",
              "source": "ioc_source",
              "type": "domain",
              "expiration_ts": 1512000062,
          },
          {
              "value": "malicious_domain2.com",
              "itype": "c2_domain",
              "source": "ioc_source2",
              "type": "domain",
              "expiration_ts": 1512000062,
          },
      ]
      assert_equal(processed_data, expected_result)
  
imports: from datetime import datetime
  import os
  import boto3
  from botocore.exceptions import ClientError
  from mock import Mock, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, raises
  from streamalert.shared.config import load_config
  from streamalert.threat_intel_downloader.exceptions import ThreatStreamCredsError, ThreatStreamLambdaInvokeError, ThreatStreamRequestsError
  from streamalert.threat_intel_downloader.main import ThreatStream
  from tests.unit.streamalert.apps.test_helpers import MockLambdaClient
  from tests.unit.streamalert.shared.test_config import get_mock_lambda_context
  from tests.unit.streamalert.threat_intel_downloader.test_helpers import put_mock_params
label_desc: Use image node_id 5 for calling the TestThreatStream obj's underlying member method code with example usage: obj.test_process_data() without return types