test/unittest_entity.py
changeset 7304 66fa1b7ac784
parent 7293 97505b798975
parent 7302 c281afe35b8b
child 7314 d3104c697adb
equal deleted inserted replaced
7301:93e96700e0c0 7304:66fa1b7ac784
   169                               'Any X,AA,AB,AC,AD ORDERBY AA ASC '
   169                               'Any X,AA,AB,AC,AD ORDERBY AA ASC '
   170                               'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD')
   170                               'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD')
   171             # testing two non final relations
   171             # testing two non final relations
   172             Personne.fetch_attrs = ('nom', 'prenom', 'travaille', 'evaluee')
   172             Personne.fetch_attrs = ('nom', 'prenom', 'travaille', 'evaluee')
   173             self.assertEqual(Personne.fetch_rql(user),
   173             self.assertEqual(Personne.fetch_rql(user),
   174                               'Any X,AA,AB,AC,AD,AE,AF ORDERBY AA ASC,AF DESC '
   174                              'Any X,AA,AB,AC,AD,AE ORDERBY AA ASC '
   175                               'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD, '
   175                              'WHERE X is Personne, X nom AA, X prenom AB, X travaille AC?, AC nom AD, '
   176                               'X evaluee AE?, AE modification_date AF')
   176                              'X evaluee AE?')
   177             # testing one non final relation with recursion
   177             # testing one non final relation with recursion
   178             Personne.fetch_attrs = ('nom', 'prenom', 'travaille')
   178             Personne.fetch_attrs = ('nom', 'prenom', 'travaille')
   179             Societe.fetch_attrs = ('nom', 'evaluee')
   179             Societe.fetch_attrs = ('nom', 'evaluee')
   180             self.assertEqual(Personne.fetch_rql(user),
   180             self.assertEqual(Personne.fetch_rql(user),
   181                               'Any X,AA,AB,AC,AD,AE,AF ORDERBY AA ASC,AF DESC '
   181                               'Any X,AA,AB,AC,AD,AE,AF ORDERBY AA ASC,AF DESC '