test/unittest_rset.py
branchstable
changeset 5667 04cbd80fd5dc
parent 5426 0d4853a6e5ee
child 5679 0f2ded880d01
child 5740 46207f491a51
--- a/test/unittest_rset.py	Fri Jun 04 11:09:55 2010 +0200
+++ b/test/unittest_rset.py	Fri Jun 04 13:07:07 2010 +0200
@@ -397,5 +397,9 @@
                           '(Any X,N WHERE X is CWGroup, X name N)'
                           ')')
 
+    def test_count_users_by_date(self):
+        rset = self.execute('Any D, COUNT(U) GROUPBY D WHERE U is CWUser, U creation_date D')
+        self.assertEquals(rset.related_entity(0,0), (None, None))
+
 if __name__ == '__main__':
     unittest_main()