def test_get_snmp_multiple_oid_exception_error_indication(
         self, mock_map, mock_get_snmp_without_auth):
     """
     :param:
     :return:
     """
     oids = "1.1.1.1"
     ip = "0.0.0.0"  # pylint:disable=invalid-name
     snmp_config_data = {
         "snmp_version": "v1",
         "port": 1111,
         "snmp_community": "nhii"
     }
     template_oids = "11.11.11.11"
     mock_map.return_value = template_oids
     errorIndication, errorStatus, errorIndex, varBinds = 'a', '', 'c', 'd'  # pylint:disable=invalid-name
     mock_get_snmp_without_auth.return_value = errorIndication, errorStatus, errorIndex, varBinds  # pylint:disable=invalid-name
     from statistics_collection.snmp.snmp_methods import get_snmp_multiple_oid  # pylint:disable=import-error
     with self.assertRaises(Exception):
         get_snmp_multiple_oid(oids, ip, snmp_config_data)
 def test_get_snmp_multiple_oid_version_v3(self, mock_map,
                                           mock_get_snmp_without_auth):
     """
     :param:
     :return:
     """
     oids = "1.1.1.1"
     ip = "0.0.0.0"  # pylint:disable=invalid-name
     snmp_config_data = {
         "snmp_version": "v3",
         "port": 1111,
         "user_name": "root",
         "authen_protocol": "AES",
         "authen_password": "******",
         "priv_protocol": "",
         "priv_password": "******"
     }
     template_oids = "11.11.11.11"
     mock_map.return_value = template_oids
     errorIndication, errorStatus, errorIndex, varBinds = '', '', 'c', 'd'  # pylint:disable=invalid-name
     mock_get_snmp_without_auth.return_value = errorIndication, errorStatus, errorIndex, varBinds
     from statistics_collection.snmp.snmp_methods import get_snmp_multiple_oid  # pylint:disable=import-error
     with self.assertRaises(KeyError):
         get_snmp_multiple_oid(oids, ip, snmp_config_data)