Drop all the calls to .keys() when iterating on the keys of a dict
[cascardo/ipsilon.git] / tests / testmapping.py
index 6c3ae7d..64a31cd 100755 (executable)
@@ -85,7 +85,7 @@ def check_info_plugin(s, idp_name, urlbase, expected):
     data.pop('MELLON_IDP')
     data.pop('MELLON_NAME_ID')
 
-    for key in expected.keys():
+    for key in expected:
         item = data.pop('MELLON_' + key)
         if item != expected[key]:
             raise ValueError('Expected %s, got %s' % (expected[key], item))