'Should ensure target host is in the multiattach host group.'

def test_map_volume_to_multiple_hosts_volume_mapped_to_multiattach_host_group_with_lun_collision(self):

    fake_host = copy.deepcopy(eseries_fakes.HOST_2)
    fake_host['clusterRef'] = utils.NULL_REF
    fake_mapping_to_host_group = copy.deepcopy(eseries_fakes.VOLUME_MAPPING)
    fake_mapping_to_host_group['mapRef'] = eseries_fakes.MULTIATTACH_HOST_GROUP['clusterRef']
    self.mock_object(self.client, 'set_host_group_for_host', side_effect=exception.NetAppDriverException)
    self.assertRaises(exception.NetAppDriverException, host_mapper.map_volume_to_multiple_hosts, self.client, get_fake_volume(), eseries_fakes.VOLUME, fake_host, fake_mapping_to_host_group)
