'test initialize connection.'

@mock.patch.object(hbsd_basiclib, 'get_process_lock')
@mock.patch.object(hbsd_horcm.HBSDHORCM, 'exec_raidcom', side_effect=_exec_raidcom)
def test_initialize_connection_error(self, arg1, arg2):

    connector = {'wwpns': ['12345678912345bb'], 'ip': '127.0.0.2'}
    self.assertRaises(exception.HBSDError, self.driver.initialize_connection, self._VOLUME, connector)
    return
