Merge "Avoid weird typecasting"

This commit is contained in:
Jenkins 2015-07-20 16:03:18 +00:00 committed by Gerrit Code Review
commit b28c43ba3b
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class TenantUsagesTestJSON(base.BaseV2ComputeAdminTest):
def test_list_usage_all_tenants(self):
# Get usage for all tenants
tenant_usage = self.adm_client.list_tenant_usages(
start=self.start, end=self.end, detailed=int(bool(True)))
start=self.start, end=self.end, detailed="1")
self.assertEqual(len(tenant_usage), 8)
@test.idempotent_id('94135049-a4c5-4934-ad39-08fa7da4f22e')

View File

@ -66,6 +66,6 @@ class TenantUsagesNegativeTestJSON(base.BaseV2ComputeAdminTest):
# Get usage for all tenants with non admin user
params = {'start': self.start,
'end': self.end,
'detailed': int(bool(True))}
'detailed': "1"}
self.assertRaises(lib_exc.Forbidden,
self.client.list_tenant_usages, **params)