[IMP] adds a test for the new eager/lazy functionality of read_group

bzr revid: ged@openerp.com-20140407091028-4ksvnqwvrvwaho58
This commit is contained in:
Gery Debongnie 2014-04-07 11:10:28 +02:00
parent 39e69876c6
commit b5dc53fea1
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ class TestORM(common.TransactionCase):
self.assertEqual(len(read_group('month')), len(partners_by_month))
self.assertEqual(len(read_group('year')), len(partners_by_year))
rg = self.partner.read_group(self.cr, self.uid, [('id', 'in', all_partners)],
['date'], ['date:month', 'date:day'], lazy=False)
self.assertEqual(len(rg), len(all_partners))
class TestInherits(common.TransactionCase):
""" test the behavior of the orm for models that use _inherits;