test/unittest_entity.py
branchstable
changeset 4672 0288f8e5460c
parent 4630 528dee042927
child 4681 5f72584ab1d7
--- a/test/unittest_entity.py	Tue Feb 23 18:21:30 2010 +0100
+++ b/test/unittest_entity.py	Tue Feb 23 20:22:40 2010 +0100
@@ -188,14 +188,14 @@
         Personne.fetch_attrs, Personne.fetch_order = fetch_config(('nom', ))
         # XXX
         self.assertEquals(p.related_rql('evaluee'),
-                          'Any X,AA ORDERBY Z DESC '
-                          'WHERE X modification_date Z, E eid %(x)s, E evaluee X, '
+                          'Any X,AA ORDERBY AA DESC '
+                          'WHERE E eid %(x)s, E evaluee X, '
                           'X modification_date AA')
 
         tag = self.vreg['etypes'].etype_class('Tag')(self.request())
         self.assertEquals(tag.related_rql('tags', 'subject'),
-                          'Any X,AA ORDERBY Z DESC '
-                          'WHERE X modification_date Z, E eid %(x)s, E tags X, '
+                          'Any X,AA ORDERBY AA DESC '
+                          'WHERE E eid %(x)s, E tags X, '
                           'X modification_date AA')
         self.assertEquals(tag.related_rql('tags', 'subject', ('Personne',)),
                           'Any X,AA,AB ORDERBY AA ASC '