class_docstr: Tests for ThreatIntel
class_docstr_tok: ["Tests","for","ThreatIntel"]
docstr: ThreatIntel - Insert IOC Info, With Existing
docstr_tok: ["ThreatIntel","-","Insert","IOC","Info",",","With","Existing"]
code: def test_insert_ioc_info_existing(self):
      """ThreatIntel - Insert IOC Info, With Existing"""
      ioc_type = "ip"
      existing_value = "existing_value"
      record = {
          "key": "value",
          "streamalert:ioc": {ioc_type: {existing_value}},
      }
  
      new_value = "new_value"
      expected_result = {
          "key": "value",
          "streamalert:ioc": {ioc_type: {existing_value, new_value}},
      }
  
      ThreatIntel._insert_ioc_info(record, ioc_type, new_value)
  
      assert_equal(record, expected_result)
  
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 9 for calling the TestThreatIntel obj's underlying member method code with example usage: obj.test_insert_ioc_info_existing() without return types