class_docstr: Tests for ThreatIntel
class_docstr_tok: ["Tests","for","ThreatIntel"]
docstr: ThreatIntel - Process IOC Values, ParamValidationError
docstr_tok: ["ThreatIntel","-","Process","IOC","Values",",","ParamValidationError"]
code: def test_process_ioc_values_parameter_error(self, log_mock):
      """ThreatIntel - Process IOC Values, ParamValidationError"""
      potential_iocs = ["1.1.1.1", "2.2.2.2"]
      with patch.object(self._threat_intel, "_query") as query_mock:
          query_mock.side_effect = ParamValidationError(
              report="BadParams"
          )
  
          result = list(
              self._threat_intel._process_ioc_values(potential_iocs)
          )
          assert_equal(result, [])
          log_mock.assert_called_with(
              "An error occurred while querying dynamodb table"
          )
  
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 12 for calling the TestThreatIntel obj's underlying member method code with example usage: obj.test_process_ioc_values_parameter_error(log_mock) without return types