server/test/unittest_migractions.py
changeset 10800 1e4ddf5ee9ad
parent 10799 ec97974b9010
child 10801 b4beaf0bccea
--- a/server/test/unittest_migractions.py	Wed Sep 16 16:04:17 2015 +0200
+++ b/server/test/unittest_migractions.py	Tue Nov 03 16:00:34 2015 +0100
@@ -786,14 +786,14 @@
 
     def test_computed_relation_sync_schema_props_perms_security(self):
         with self.mh() as (cnx, mh):
-            rdef = next(self.schema['perm_changes'].rdefs.itervalues())
+            rdef = next(iter(self.schema['perm_changes'].rdefs.values()))
             self.assertEqual(rdef.permissions,
                              {'add': (), 'delete': (),
                               'read': ('managers', 'users')})
             mh.cmd_sync_schema_props_perms('perm_changes')
             self.assertEqual(self.schema['perm_changes'].permissions,
                              {'read': ('managers',)})
-            rdef = next(self.schema['perm_changes'].rdefs.itervalues())
+            rdef = next(iter(self.schema['perm_changes'].rdefs.values()))
             self.assertEqual(rdef.permissions,
                              {'add': (), 'delete': (),
                               'read': ('managers',)})