'Make sure if the attachment id isn\'t found we raise.'

def test_detach_invalid_attachment_id(self):

    attachment_id = 'notfoundid'
    volume = tests_utils.create_volume(self.context, admin_metadata={'readonly': 'True'}, multiattach=False, **self.volume_params)
    self.volume.detach_volume(self.context, volume['id'], attachment_id)
    volume = db.volume_get(self.context, volume['id'])
    self.assertEqual('available', volume['status'])
    instance_uuid = '12345678-1234-5678-1234-567812345678'
    attached_host = 'fake_host'
    mountpoint = '/dev/fake'
    tests_utils.attach_volume(self.context, volume['id'], instance_uuid, attached_host, mountpoint)
    self.volume.detach_volume(self.context, volume['id'], attachment_id)
    volume = db.volume_get(self.context, volume['id'])
    self.assertEqual('in-use', volume['status'])
