'Test worker update updating the worker orm object.'

def test_worker_update_update_orm(self):

    worker = self._create_workers(1)[0]
    res = db.worker_update(self.ctxt, worker.id, orm_worker=worker, service_id=1)
    self.assertEqual(1, res)
    db_worker = db.worker_get(self.ctxt, id=worker.id)
    self._assertEqualObjects(worker, db_worker)
