class_docstr: Normalizer tests
class_docstr_tok: ["Normalizer","tests"]
docstr: Normalizer - Load normalization config raises ConfigError
          
docstr_tok: ["Normalizer","-","Load","normalization","config","raises","ConfigError"]
code: def test_load_from_config_error(self):
      """Normalizer - Load normalization config raises ConfigError"""
      config = {
          "logs": {
              "cloudwatch:events": {
                  "schema": {
                      "account": "string",
                      "source": "string",
                      "key": "string",
                  },
                  "parser": "json",
                  "configuration": {"normalization": {"foo": "bar"}},
              }
          }
      }
      assert_raises(ConfigError, Normalizer.load_from_config, config)
  
      config = {
          "logs": {
              "cloudwatch:events": {
                  "schema": {
                      "account": "string",
                      "source": "string",
                      "key": "string",
                  },
                  "parser": "json",
                  "configuration": {
                      "normalization": {
                          "ip_address": {
                              "path": ["detail", "sourceIPAddress"],
                              "function": "source ip address",
                          }
                      }
                  },
              },
              "other_log_type": {},
          }
      }
      assert_raises(ConfigError, Normalizer.load_from_config, config)
  
imports: from mock import Mock, patch
  from nose.tools import assert_equal, assert_false, assert_raises, assert_true
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.normalize import Normalizer, NormalizedType
  from tests.unit.streamalert.shared.test_utils import MOCK_RECORD_ID
label_desc: Use image node_id 21 for calling the TestNormalizer obj's underlying member method code with example usage: obj.test_load_from_config_error() without return types