'Map the volume directly to destination host.'

def test_map_volume_to_host_volume_not_mapped(self):

    self.mock_object(self.library._client, 'get_volume_mappings_for_volume', return_value=[])
    self.mock_object(host_mapper, 'map_volume_to_single_host', return_value=eseries_fake.VOLUME_MAPPING)
    self.library.map_volume_to_host(get_fake_volume(), eseries_fake.VOLUME, eseries_fake.INITIATOR_NAME_2)
    self.assertTrue(self.library._client.get_volume_mappings_for_volume.called)
    self.assertTrue(host_mapper.map_volume_to_single_host.called)
