--- a/web/test/unittest_views_searchrestriction.py Thu Feb 14 15:38:25 2013 +0100
+++ b/web/test/unittest_views_searchrestriction.py Thu Feb 14 16:01:24 2013 +0100
@@ -79,7 +79,7 @@
select = self.parse('DISTINCT Any V,TN,L ORDERBY TN,L WHERE T nom TN, V connait T, T is Personne, V is CWUser,'
'NOT V in_state VS, VS name "published", V login L')
rschema = self.schema['connait']
- for rdefs in rschema.rdefs.values():
+ for rdefs in rschema.rdefs.itervalues():
rdefs.cardinality = '++'
try:
self.assertEqual(self._generate(select, 'in_state', 'subject', 'name'),
@@ -87,7 +87,7 @@
"NOT EXISTS(V in_state VS), VS name 'published', "
"V in_state A, A name B")
finally:
- for rdefs in rschema.rdefs.values():
+ for rdefs in rschema.rdefs.itervalues():
rdefs.cardinality = '**'
def test_nonregr3(self):