'test initialize connection.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_snm2.HBSDSNM2, 'exec_hsnm', side_effect=_exec_hsnm)
def test_initialize_connection_error(self, arg1, arg2):

    connector = {'wwpns': '0x100000', 'ip': '0.0.0.0', 'initiator': 'iqnX'}
    self.assertRaises(exception.HBSDError, self.driver.initialize_connection, self._VOLUME, connector)
    return
