From 1fefa254616df68fb13913c9a9272405d82b0efb Mon Sep 17 00:00:00 2001 From: gengjh Date: Thu, 28 Mar 2013 10:02:37 +0800 Subject: Show quota 'in_use' and 'reserved' info We need show all the quotas related info, including 'in_use' and 'reserved'--not just the limit--when executing 'nova-manage project quota'. Fix bug 1160752 Change-Id: I25e10e58c6af705e2189550ad762e6f39bca342e --- nova/tests/test_nova_manage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/tests/test_nova_manage.py b/nova/tests/test_nova_manage.py index 49f9f3256..727746b18 100644 --- a/nova/tests/test_nova_manage.py +++ b/nova/tests/test_nova_manage.py @@ -366,7 +366,8 @@ class ProjectCommandsTestCase(test.TestCase): sys.stdout = sys.__stdout__ result = output.getvalue() - self.assertEquals(('instances: unlimited' in result), True) + print_format = "%-36s %-10s" % ('instances', 'unlimited') + self.assertEquals((print_format in result), True) def test_quota_update_invalid_key(self): self.assertRaises(SystemExit, -- cgit