server/test/unittest_querier.py
changeset 8002 822a8150f78d
parent 7907 08320697ca1a
child 8018 f01c80513274
equal deleted inserted replaced
8001:35d673b05e84 8002:822a8150f78d
   527                             'HAVING COUNT(RDEF) > 10')
   527                             'HAVING COUNT(RDEF) > 10')
   528         self.assertListEqual(rset.rows,
   528         self.assertListEqual(rset.rows,
   529                               [[u'description_format', 12],
   529                               [[u'description_format', 12],
   530                                [u'description', 13],
   530                                [u'description', 13],
   531                                [u'name', 15],
   531                                [u'name', 15],
   532                                [u'created_by', 41],
   532                                [u'created_by', 42],
   533                                [u'creation_date', 41],
   533                                [u'creation_date', 42],
   534                                [u'cw_source', 41],
   534                                [u'cw_source', 42],
   535                                [u'cwuri', 41],
   535                                [u'cwuri', 42],
   536                                [u'in_basket', 41],
   536                                [u'in_basket', 42],
   537                                [u'is', 41],
   537                                [u'is', 42],
   538                                [u'is_instance_of', 41],
   538                                [u'is_instance_of', 42],
   539                                [u'modification_date', 41],
   539                                [u'modification_date', 42],
   540                                [u'owned_by', 41]])
   540                                [u'owned_by', 42]])
   541 
   541 
   542     def test_select_aggregat_having_dumb(self):
   542     def test_select_aggregat_having_dumb(self):
   543         # dumb but should not raise an error
   543         # dumb but should not raise an error
   544         rset = self.execute('Any U,COUNT(X) GROUPBY U '
   544         rset = self.execute('Any U,COUNT(X) GROUPBY U '
   545                             'WHERE U eid %(x)s, X owned_by U '
   545                             'WHERE U eid %(x)s, X owned_by U '