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

def test_map_volume_to_multiple_hosts_volume_mapped_to_multiattach_host_group(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')
    self.mock_object(self.client, 'get_host_group', return_value=eseries_fakes.MULTIATTACH_HOST_GROUP)
    host_mapper.map_volume_to_multiple_hosts(self.client, get_fake_volume(), eseries_fakes.VOLUME, fake_host, fake_mapping_to_host_group)
    self.assertEqual(1, self.client.set_host_group_for_host.call_count)
