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): |