[libvirt] [test-API][PATCH 1/3] Delete the duplicate function