class_docstr: Tests for ThreatIntel
class_docstr_tok: ["Tests","for","ThreatIntel"]
docstr: ThreatIntel - Load From Config
docstr_tok: ["ThreatIntel","-","Load","From","Config"]
code: def test_load_from_config(self):
      """ThreatIntel - Load From Config"""
      ti_client = ThreatIntel.load_from_config(self._default_config)
  
      assert_equal(isinstance(ti_client, ThreatIntel), True)
      assert_equal(ti_client._table, "table_name")
      assert_equal(ti_client._enabled_clusters, {"prod"})
      expected_config = {
          "destinationDomain": "domain",
          "sourceAddress": "ip",
          "destinationAddress": "ip",
          "fileHash": "md5",
      }
      assert_equal(ti_client._ioc_config, expected_config)
      assert_equal(
          ti_client._excluded_iocs, {"domain": {"not.evil.com"}}
      )
  
imports: from botocore.exceptions import ClientError, ParamValidationError
  from mock import Mock, patch
  from netaddr import IPNetwork
  from nose.tools import assert_equal
  from streamalert.rules_engine.threat_intel import ThreatIntel
label_desc: Use image node_id 27 for calling the TestThreatIntel obj's underlying member method code with example usage: obj.test_load_from_config() without return types