def test_parse_ucsm_host_config(self):
        ucsm_sp_dict = {}
        ucsm_host_dict = {}
        cfg.CONF.ml2_cisco_ucsm.ucsm_host_list = ['Host1:SP1', 'Host2:SP2']
        cfg.CONF.ml2_cisco_ucsm.ucsm_ip = '1.1.1.1'
        expected_ip = '1.1.1.1'
        expected_sp1 = "org-root/ls-SP1"
        expected_sp2 = "org-root/ls-SP2"
        ucsm_sp_dict, ucsm_host_dict = conf.parse_ucsm_host_config()

        key = (cfg.CONF.ml2_cisco_ucsm.ucsm_ip, 'Host1')
        self.assertIn(key, ucsm_sp_dict)
        self.assertEqual(expected_sp1, ucsm_sp_dict[key])
        self.assertIn('Host1', ucsm_host_dict)
        self.assertEqual(expected_ip, ucsm_host_dict['Host1'])

        key = (cfg.CONF.ml2_cisco_ucsm.ucsm_ip, 'Host2')
        self.assertIn(key, ucsm_sp_dict)
        self.assertEqual(expected_sp2, ucsm_sp_dict.get(key))
        self.assertEqual(expected_ip, ucsm_host_dict.get('Host2'))

        key = (cfg.CONF.ml2_cisco_ucsm.ucsm_ip, 'Host3')
        self.assertNotIn(key, ucsm_sp_dict)
        self.assertIsNone(ucsm_host_dict.get('Host3'))
Make sure if we don't have anyone to send an email to we send it to a
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/ucsm/test_cisco_ucsm_driver.py/TestCiscoUcsmMechDriver.test_parse_ucsm_host_config--crossover with--dataset/ETHPy150Open wingu/failnozzle/failnozzle/tests/test_server.py/test_mailer_no_recips