Don't actually connect to libvirtd in unit tests.
Don't actually connect to libvirtd in unit tests.

The libvirt tests shouldn't actually be connecting to libvirtd
while running unit tests. Many of the tests were calling either
getLibVersion or getCapabilites, which would start a connection.
Fake these out so the tests can run properly without libvirtd.

Fixes bug 1157992

Change-Id: Iff1a60fc3cc912fdaf641f1f289744bcc9cc9736

petrutlucian94/nova_dev,devoid/nova,NeCTAR-RC/nova,DirectXMan12/nova-hacking,yatinkumbhare/openstack-nova,berrange/nova,LoHChina/nova,tianweizhang/nova,Yuriy-Leonov/nova,jianghuaw/nova,rahulunair/nova,nikesh-mahalka/nova,cloudbase/nova,ntt-sic/nova,JioCloud/nova,Juniper/nova,dawnpower/nova,alexandrucoman/vbox-nova-driver,tealover/nova,yatinkumbhare/openstack-nova,Stavitsky/nova,tudorvio/nova,takeshineshiro/nova,citrix-openstack-build/nova,jeffrey4l/nova,sridevikoushik31/nova,iuliat/nova,rickerc/nova_audit,bclau/nova,zzicewind/nova,mmnelemane/nova,petrutlucian94/nova,virtualopensystems/nova,alvarolopez/nova,jianghuaw/nova,CiscoSystems/nova,cloudbau/nova,edulramirez/nova,mikalstill/nova,blueboxgroup/nova,felixma/nova,thomasem/nova,affo/nova,double12gzh/nova,TwinkleChawla/nova,klmitch/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,luogangyi/bcec-nova,ted-gould/nova,sacharya/nova,badock/nova,isyippee/nova,eayunstack/nova,hanlind/nova,Yusuke1987/openstack_template,badock/nova,ntt-sic/nova,mikalstill/nova,alexandrucoman/vbox-nova-driver,cloudbau/nova,akash1808/nova,fnordahl/nova,noironetworks/nova,mahak/nova,shootstar/novatest,Metaswitch/calico-nova,orbitfp7/nova,rahulunair/nova,yosshy/nova,akash1808/nova_test_latest,Metaswitch/calico-nova,whitepages/nova,bgxavier/nova,maelnor/nova,gooddata/openstack-nova,eonpatapon/nova,whitepages/nova,CCI-MOC/nova,bclau/nova,TieWei/nova,mikalstill/nova,blueboxgroup/nova,gooddata/openstack-nova,eayunstack/nova,vmturbo/nova,OpenAcademy-OpenStack/nova-scheduler,Tehsmash/nova,petrutlucian94/nova_dev,adelina-t/nova,MountainWei/nova,klmitch/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,luogangyi/bcec-nova,vladikr/nova_drafts,watonyweng/nova,klmitch/nova,leilihh/nova,plumgrid/plumgrid-nova,BeyondTheClouds/nova,DirectXMan12/nova-hacking,vmturbo/nova,Yusuke1987/openstack_template,vmturbo/nova,mahak/nova,gooddata/openstack-nova,redhat-openstack/nova,saleemjaveds/https-github.com-openstack-nova,silenceli/nova,TieWei/nova,imsplitbit/nova,tanglei528/nova,iuliat/nova,rickerc/nova_audit,ewindisch/nova,viggates/nova,tangfeixiong/nova,ted-gould/nova,shahar-stratoscale/nova,zhimin711/nova,qwefi/nova,eonpatapon/nova,citrix-openstack-build/nova,takeshineshiro/nova,bigswitch/nova,virtualopensystems/nova,plumgrid/plumgrid-nova,hanlind/nova,tangfeixiong/nova,CloudServer/nova,joker946/nova,isyippee/nova,redhat-openstack/nova,qwefi/nova,mahak/nova,rrader/nova-docker-plugin,rrader/nova-docker-plugin,CloudServer/nova,BeyondTheClouds/nova,JioCloud/nova_test_latest,fnordahl/nova,felixma/nova,NeCTAR-RC/nova,scripnichenko/nova,LoHChina/nova,sebrandon1/nova,ruslanloman/nova,bgxavier/nova,cyx1231st/nova,OpenAcademy-OpenStack/nova-scheduler,berrange/nova,angdraug/nova,Juniper/nova,sacharya/nova,shootstar/novatest,apporc/nova,cloudbase/nova-virtualbox,rajalokan/nova,JianyuWang/nova,cernops/nova,tealover/nova,ruslanloman/nova,j-carpentier/nova,rajalokan/nova,zaina/nova,openstack/nova,cloudbase/nova,gspilio/nova,devendermishrajio/nova_test_latest,devendermishrajio/nova,gspilio/nova,double12gzh/nova,ewindisch/nova,sridevikoushik31/nova,BeyondTheClouds/nova,barnsnake351/nova,sebrandon1/nova,CCI-MOC/nova,kimjaejoong/nova,rajalokan/nova,zaina/nova,shail2810/nova,CEG-FYP-OpenStack/scheduler,Yuriy-Leonov/nova,petrutlucian94/nova,tianweizhang/nova,viggates/nova,apporc/nova,belmiromoreira/nova,jianghuaw/nova,gooddata/openstack-nova,mgagne/nova,varunarya10/nova_test_latest,cloudbase/nova,raildo/nova,Francis-Liu/animated-broccoli,j-carpentier/nova,jeffrey4l/nova,shail2810/nova,joker946/nova,cernops/nova,JioCloud/nova_test_latest,openstack/nova,Juniper/nova,vmturbo/nova,silenceli/nova,Juniper/nova,leilihh/novaha,alvarolopez/nova,angdraug/nova,alaski/nova,spring-week-topos/nova-week,cyx1231st/nova,vladikr/nova_drafts,gspilio/nova,noironetworks/nova,eharney/nova,CEG-FYP-OpenStack/scheduler,dawnpower/nova,zzicewind/nova,devendermishrajio/nova_test_latest,phenoxim/nova,alaski/nova,mandeepdhami/nova,projectcalico/calico-nova,klmitch/nova,shahar-stratoscale/nova,projectcalico/calico-nova,adelina-t/nova,sridevikoushik31/nova,JioCloud/nova,devendermishrajio/nova,Tehsmash/nova,Francis-Liu/animated-broccoli,hanlind/nova,dims/nova,akash1808/nova_test_latest,tanglei528/nova,jianghuaw/nova,barnsnake351/nova,affo/nova,bigswitch/nova,SUSE-Cloud/nova,rahulunair/nova,leilihh/nova,orbitfp7/nova,openstack/nova,cernops/nova,watonyweng/nova,rajalokan/nova,MountainWei/nova,spring-week-topos/nova-week,DirectXMan12/nova-hacking,edulramirez/nova,devoid/nova,eharney/nova,sebrandon1/nova,SUSE-Cloud/nova,scripnichenko/nova,imsplitbit/nova,varunarya10/nova_test_latest,sridevikoushik31/nova,mmnelemane/nova,TwinkleChawla/nova,raildo/nova,tudorvio/nova,CiscoSystems/nova,JianyuWang/nova,kimjaejoong/nova,phenoxim/nova,dims/nova,nikesh-mahalka/nova,akash1808/nova,leilihh/novaha,thomasem/nova,Stavitsky/nova,maelnor/nova,mgagne/nova,saleemjaveds/https-github.com-openstack-nova,cloudbase/nova-virtualbox,belmiromoreira/nova,mandeepdhami/nova,zhimin711/nova,yosshy/nova