Correct test boundary for libvirt_driver.get_info
Correct test boundary for libvirt_driver.get_info

The test_get_domain_info_with_more_return() unit test was causing
failure on some systems where lxml was not capable of handling None for
the xml to parse. However, our unit tests should not be testing libvirt;
the unit tests in libvirt already do that. Our unit tests should simply
test the code boundaries of the unit of code that they wish to stress,
and not anything further.

This patch changes the unit test in question to only test the code
within the libvirt_driver.LibvirtDriver.get_info() method, and nothing
more, and in doing so, we remove any calls at all to libvirt and mock
out where the code passes the boundaries of the get_info() method.

Change-Id: I022cc331a980c2a4d98f16d2d77b24839b528464
Closes-bug: #1301602

akash1808/nova_test_latest,kimjaejoong/nova,vladikr/nova_drafts,Yusuke1987/openstack_template,blueboxgroup/nova,jianghuaw/nova,j-carpentier/nova,felixma/nova,raildo/nova,alaski/nova,viggates/nova,hanlind/nova,phenoxim/nova,JianyuWang/nova,dawnpower/nova,zhimin711/nova,eayunstack/nova,JioCloud/nova,maelnor/nova,varunarya10/nova_test_latest,takeshineshiro/nova,adelina-t/nova,gooddata/openstack-nova,apporc/nova,tudorvio/nova,LoHChina/nova,cloudbase/nova-virtualbox,eayunstack/nova,affo/nova,CloudServer/nova,virtualopensystems/nova,edulramirez/nova,tangfeixiong/nova,bigswitch/nova,CCI-MOC/nova,jeffrey4l/nova,badock/nova,Juniper/nova,eharney/nova,scripnichenko/nova,rahulunair/nova,hanlind/nova,projectcalico/calico-nova,yosshy/nova,CCI-MOC/nova,gooddata/openstack-nova,Stavitsky/nova,gooddata/openstack-nova,tudorvio/nova,cernops/nova,isyippee/nova,Francis-Liu/animated-broccoli,zaina/nova,mahak/nova,ted-gould/nova,rahulunair/nova,iuliat/nova,ruslanloman/nova,felixma/nova,whitepages/nova,alexandrucoman/vbox-nova-driver,shail2810/nova,klmitch/nova,whitepages/nova,maelnor/nova,CEG-FYP-OpenStack/scheduler,Metaswitch/calico-nova,berrange/nova,alvarolopez/nova,vmturbo/nova,cloudbase/nova,tianweizhang/nova,joker946/nova,rajalokan/nova,fnordahl/nova,devendermishrajio/nova_test_latest,MountainWei/nova,akash1808/nova,Metaswitch/calico-nova,belmiromoreira/nova,vmturbo/nova,klmitch/nova,double12gzh/nova,cyx1231st/nova,badock/nova,cloudbase/nova,jeffrey4l/nova,dims/nova,angdraug/nova,akash1808/nova_test_latest,tianweizhang/nova,phenoxim/nova,devendermishrajio/nova,devendermishrajio/nova_test_latest,vladikr/nova_drafts,mahak/nova,rajalokan/nova,zaina/nova,rajalokan/nova,barnsnake351/nova,edulramirez/nova,kimjaejoong/nova,cloudbase/nova-virtualbox,double12gzh/nova,tealover/nova,Tehsmash/nova,mikalstill/nova,BeyondTheClouds/nova,mikalstill/nova,Yusuke1987/openstack_template,cernops/nova,sebrandon1/nova,jianghuaw/nova,raildo/nova,JioCloud/nova_test_latest,redhat-openstack/nova,petrutlucian94/nova,vmturbo/nova,openstack/nova,berrange/nova,scripnichenko/nova,takeshineshiro/nova,j-carpentier/nova,apporc/nova,LoHChina/nova,eonpatapon/nova,saleemjaveds/https-github.com-openstack-nova,cloudbase/nova,sebrandon1/nova,CiscoSystems/nova,devendermishrajio/nova,silenceli/nova,cyx1231st/nova,watonyweng/nova,mgagne/nova,TwinkleChawla/nova,jianghuaw/nova,mandeepdhami/nova,thomasem/nova,akash1808/nova,yosshy/nova,petrutlucian94/nova,thomasem/nova,Tehsmash/nova,klmitch/nova,BeyondTheClouds/nova,tanglei528/nova,ted-gould/nova,zzicewind/nova,gooddata/openstack-nova,affo/nova,alexandrucoman/vbox-nova-driver,iuliat/nova,mmnelemane/nova,CloudServer/nova,hanlind/nova,projectcalico/calico-nova,NeCTAR-RC/nova,TwinkleChawla/nova,fnordahl/nova,bigswitch/nova,Juniper/nova,orbitfp7/nova,tealover/nova,rahulunair/nova,sebrandon1/nova,isyippee/nova,angdraug/nova,Stavitsky/nova,klmitch/nova,Juniper/nova,jianghuaw/nova,redhat-openstack/nova,MountainWei/nova,virtualopensystems/nova,Francis-Liu/animated-broccoli,ruslanloman/nova,mahak/nova,NeCTAR-RC/nova,belmiromoreira/nova,mmnelemane/nova,nikesh-mahalka/nova,bgxavier/nova,mgagne/nova,orbitfp7/nova,CiscoSystems/nova,shail2810/nova,zhimin711/nova,alvarolopez/nova,JioCloud/nova,dawnpower/nova,tangfeixiong/nova,vmturbo/nova,alaski/nova,mikalstill/nova,eonpatapon/nova,varunarya10/nova_test_latest,openstack/nova,silenceli/nova,rajalokan/nova,joker946/nova,openstack/nova,nikesh-mahalka/nova,JioCloud/nova_test_latest,yatinkumbhare/openstack-nova,CEG-FYP-OpenStack/scheduler,mandeepdhami/nova,Juniper/nova,watonyweng/nova,BeyondTheClouds/nova,viggates/nova,tanglei528/nova,cernops/nova,noironetworks/nova,dims/nova,bgxavier/nova,zzicewind/nova,saleemjaveds/https-github.com-openstack-nova,blueboxgroup/nova,eharney/nova,yatinkumbhare/openstack-nova,barnsnake351/nova,adelina-t/nova,noironetworks/nova,JianyuWang/nova