def test_get_bulk_snmp_with_exception(self, mock_bulk_cmd):
     """
     :param:
     :return:
     """
     template_oid = "11.11.11.11"
     ip = "1.1.1.1"  # pylint:disable=invalid-name
     snmp_config_data = {"snmp_version": "v1", "snmp_community": "nhii"}
     snmp_iter = "test"
     mock_bulk_cmd.return_value = snmp_iter
     from statistics_collection.snmp.snmp_methods import get_bulk_snmp  # pylint:disable=import-error
     with self.assertRaises(Exception):
         actual = get_bulk_snmp(template_oid, ip, snmp_config_data)
         expect = "test"
         self.assertEqual(expect, actual)
 def test_get_bulk_snmp_with_version_v3(self, mock_bulk_cmd):
     """
     :param:
     :return:
     """
     template_oid = "11.11.11.11"
     ip = "1.1.1.1"  # pylint:disable=invalid-name
     snmp_config_data = {
         "snmp_version": "v3",
         "snmp_community": "nhii",
         "port": 1111,
         "user_name": "root",
         "authen_protocol": "AES",
         "authen_password": "******",
         "priv_protocol": "",
         "priv_password": "******"
     }
     snmp_iter = "test"
     mock_bulk_cmd.return_value = snmp_iter
     from statistics_collection.snmp.snmp_methods import get_bulk_snmp  # pylint:disable=import-error
     with self.assertRaises(Exception):
         actual = get_bulk_snmp(template_oid, ip, snmp_config_data)
         expect = "test"
         self.assertEqual(expect, actual)