diff options
author | Zhang Chun <zhang.chun.os@99cloud.net> | 2013-07-05 00:05:17 +0800 |
---|---|---|
committer | Zhang Chun <zhang.chun.os@99cloud.net> | 2013-07-05 00:05:17 +0800 |
commit | 9559bdf1db33a6c49173f5b46e79af8099676ad5 (patch) | |
tree | 301a7410a10e037f514cd9b3f862ef87b895abec /tests/test_backend.py | |
parent | bb6ebd488f3407020df48e91e7a3b589b3a2fca8 (diff) | |
download | keystone-9559bdf1db33a6c49173f5b46e79af8099676ad5.tar.gz keystone-9559bdf1db33a6c49173f5b46e79af8099676ad5.tar.xz keystone-9559bdf1db33a6c49173f5b46e79af8099676ad5.zip |
Remove an enumerate call
Refactor tests/test_backend.py, remove a useless enumerate call in for
loop.
Change-Id: I1268ce70d40994078343ec3120021c131e52713d
Diffstat (limited to 'tests/test_backend.py')
-rw-r--r-- | tests/test_backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_backend.py b/tests/test_backend.py index ea40cd8b..7361f775 100644 --- a/tests/test_backend.py +++ b/tests/test_backend.py @@ -1065,7 +1065,7 @@ class IdentityTests(object): project_id=project1['id']) roles_ref_ids = [] - for i, ref in enumerate(roles_ref): + for ref in roles_ref: roles_ref_ids.append(ref['id']) self.assertIn(role1['id'], roles_ref_ids) self.assertIn(role2['id'], roles_ref_ids) |