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
changes/78/140978/4
Hironori Shiina9 years agocommitted byShiina, Hironori