'Test that claim fails on worker service change.'

def test_worker_claim_fails_service_change(self):

    failed_service = 1
    working_service = 2
    this_service = 3
    worker = db.worker_create(self.ctxt, resource_type='Volume', resource_id=fake.VOLUME_ID, status='deleting', service_id=working_service)
    worker.service_id = failed_service
    res = db.worker_claim_for_cleanup(self.ctxt, this_service, worker)
    self.assertEqual(0, res)
    db_worker = db.worker_get(self.ctxt, id=worker.id)
    self.assertEqual(working_service, db_worker.service_id)
