'Tests that the translate_volume_exception decorator is used.'

@mock.patch('nova.volume.cinder.cinderclient')
def test_attachment_create_volume_not_found(self, mock_cinderclient):

    mock_cinderclient.return_value.attachments.create.side_effect = cinder_exception.NotFound(404)
    self.assertRaises(exception.VolumeNotFound, self.api.attachment_create, self.ctx, uuids.volume_id, uuids.instance_id)
