server/test/unittest_querier.py
changeset 439 7cb7cb318983
parent 47 54087a269bdd
child 1016 26387b836099
child 1251 af40e615dc89
equal deleted inserted replaced
438:69b79faefa94 439:7cb7cb318983
   452     def test_select_aggregat_having(self):
   452     def test_select_aggregat_having(self):
   453         rset = self.execute('Any N,COUNT(RDEF) GROUPBY N ORDERBY 2,N '
   453         rset = self.execute('Any N,COUNT(RDEF) GROUPBY N ORDERBY 2,N '
   454                             'WHERE RT name N, RDEF relation_type RT '
   454                             'WHERE RT name N, RDEF relation_type RT '
   455                             'HAVING COUNT(RDEF) > 10')
   455                             'HAVING COUNT(RDEF) > 10')
   456         self.assertListEquals(rset.rows,
   456         self.assertListEquals(rset.rows,
   457                               [[u'description', 11], ['in_basket', 12],
   457                               [[u'description', 11], ['in_basket', 11],
   458                                [u'name', 13], [u'created_by', 33],
   458                                [u'name', 13], [u'created_by', 33],
   459                                [u'creation_date', 33], [u'is', 33], [u'is_instance_of', 33],
   459                                [u'creation_date', 33], [u'is', 33], [u'is_instance_of', 33],
   460                                [u'modification_date', 33], [u'owned_by', 33]])
   460                                [u'modification_date', 33], [u'owned_by', 33]])
   461 
   461 
   462     def test_select_aggregat_having_dumb(self):
   462     def test_select_aggregat_having_dumb(self):