'test terminate connection.'

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

    connector = {'wwpns': ['12345678912345aa', '12345678912345bb'], 'ip': '127.0.0.1'}
    rc = self.driver.terminate_connection(self._VOLUME, connector)
    self.assertEqual('fibre_channel', rc['driver_volume_type'])
    self.assertEqual(['50060E801053C2E0'], rc['data']['target_wwn'])
    return
