libvirt: Fix confusing use of mox.StubOutWithMock
libvirt: Fix confusing use of mox.StubOutWithMock

The code was using a side effect of mox.StubOutWithMock to reset
libvirt_driver.LibvirtDriver._conn after a test before resetting it manually.
This code is shorter, and it's obvious what it does.

Change-Id: I78393f76e132397dd198ac4b6ff998c785ff5690

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