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',)]) |