summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLiang Bo <liang.bo.os@99cloud.net>2013-07-21 16:55:47 +0800
committerLiang Bo <liang.bo.os@99cloud.net>2013-07-21 16:58:14 +0800
commit7ea4da4773f69c90e65d7b9e8d9af7e53a363fa9 (patch)
tree2d66bc90972214a485f68b987749c182c77d5918 /tests
parent53ed50ddd0cdebd1b6329f47caac3c8d8b41cd7e (diff)
downloadkeystone-7ea4da4773f69c90e65d7b9e8d9af7e53a363fa9.tar.gz
keystone-7ea4da4773f69c90e65d7b9e8d9af7e53a363fa9.tar.xz
keystone-7ea4da4773f69c90e65d7b9e8d9af7e53a363fa9.zip
Remove an enumerate call
Refactor tests/test_backend.py, remove a useless enumerate call in for loop. Change-Id: I5d1914ae3490f715437711d594ec903a2c6632f5
Diffstat (limited to 'tests')
-rw-r--r--tests/test_backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_backend.py b/tests/test_backend.py
index 8599ba24..a43e92ae 100644
--- a/tests/test_backend.py
+++ b/tests/test_backend.py
@@ -670,7 +670,7 @@ class IdentityTests(object):
project_id=self.tenant_bar['id'])
roles_ref_ids = []
- for i, ref in enumerate(roles_ref):
+ for ref in roles_ref:
roles_ref_ids.append(ref['id'])
self.assertIn(self.role_admin['id'], roles_ref_ids)
self.assertIn('member', roles_ref_ids)