Change "is lazy loaded" detection method in db_api test
Change "is lazy loaded" detection method in db_api test

This changes the test_security_group_get_no_instances() method to use a simpler
method of determining if instances is loaded on a security_group after a get
operation.

Change-Id: Ifea6c20bcaa201167ef5679f3ddb9ae8141bbbf5
Closes-Bug: #1349147

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