libvirt: cleanup setattr usage in test_host
libvirt: cleanup setattr usage in test_host

There is some suspect setattr/delattr in test_host for mocking out
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES. This can be easily stubbed out
with mock and the create=True kwarg so we can remove the setattr
ugliness.

Note that if you decorate a test method with a mock and use the new
kwarg, the stub isn't passed as an argument to the test method.

Change-Id: I414ac96b089f297c35fa821b926546290ac66bdc

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