server/test/unittest_querier.py
branchstable
changeset 9331 c6f54ed6b60a
parent 9312 88d40fbcc071
child 9375 8e88576787c3
equal deleted inserted replaced
9330:45e0034e2a73 9331:c6f54ed6b60a
   700 
   700 
   701     def test_select_no_descr(self):
   701     def test_select_no_descr(self):
   702         rset = self.execute('Any X WHERE X is CWGroup', build_descr=0)
   702         rset = self.execute('Any X WHERE X is CWGroup', build_descr=0)
   703         rset.rows.sort()
   703         rset.rows.sort()
   704         self.assertEqual(tuplify(rset.rows), [(2,), (3,), (4,), (5,)])
   704         self.assertEqual(tuplify(rset.rows), [(2,), (3,), (4,), (5,)])
   705         self.assertEqual(rset.description, [])
   705         self.assertEqual(rset.description, ())
   706 
   706 
   707     def test_select_limit_offset(self):
   707     def test_select_limit_offset(self):
   708         rset = self.execute('CWGroup X ORDERBY N LIMIT 2 WHERE X name N')
   708         rset = self.execute('CWGroup X ORDERBY N LIMIT 2 WHERE X name N')
   709         self.assertEqual(tuplify(rset.rows), [(2,), (3,)])
   709         self.assertEqual(tuplify(rset.rows), [(2,), (3,)])
   710         self.assertEqual(rset.description, [('CWGroup',), ('CWGroup',)])
   710         self.assertEqual(rset.description, [('CWGroup',), ('CWGroup',)])