'Test map volume to a single host.
Should move mapping to target host if volume is not migrating or
attached(in-use). If volume is not in use then it should not require a
mapping making it ok to sever the mapping to the host group.'

def test_map_volume_to_single_host_volume_mapped_to_multiattach_host_group(self):

    fake_mapping_to_other_host = copy.deepcopy(eseries_fakes.VOLUME_MAPPING)
    fake_mapping_to_other_host['mapRef'] = eseries_fakes.MULTIATTACH_HOST_GROUP['clusterRef']
    self.mock_object(self.client, 'move_volume_mapping_via_symbol', return_value={'lun': 5})
    host_mapper.map_volume_to_single_host(self.client, get_fake_volume(), eseries_fakes.VOLUME, eseries_fakes.HOST, fake_mapping_to_other_host, False)
    self.assertTrue(self.client.move_volume_mapping_via_symbol.called)
