Add unit test for getting project quota remains
Add unit test for getting project quota remains

This patch adds the unit test for get_project_quotas() when the
argument 'remains' is true. In this case, remains of each resource are
calculated.

'Remains' means the amount of a project quota which is not allocated to
users. The added test mocks quota_get_all(), which gets user quota if
explicitly set. 'Remains' of instances and cores are calculated by
subtracting 'hard_limit' returned by fake_quota_get_all() from 'limit',
which means project quota.

Change-Id: Ib5307c1e960ffcd59fe04fd011626b0ba927375d

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