266 rset = self.execute('Any %(x)s', {'x': u'str'}) |
266 rset = self.execute('Any %(x)s', {'x': u'str'}) |
267 self.assertEqual(rset.description[0][0], 'String') |
267 self.assertEqual(rset.description[0][0], 'String') |
268 |
268 |
269 def test_build_descr1(self): |
269 def test_build_descr1(self): |
270 rset = self.execute('(Any U,L WHERE U login L) UNION (Any G,N WHERE G name N, G is CWGroup)') |
270 rset = self.execute('(Any U,L WHERE U login L) UNION (Any G,N WHERE G name N, G is CWGroup)') |
271 rset.req = self.transaction |
271 rset.req = self.session |
272 orig_length = len(rset) |
272 orig_length = len(rset) |
273 rset.rows[0][0] = 9999999 |
273 rset.rows[0][0] = 9999999 |
274 description = manual_build_descr(rset.req, rset.syntax_tree(), None, rset.rows) |
274 description = manual_build_descr(rset.req, rset.syntax_tree(), None, rset.rows) |
275 self.assertEqual(len(description), orig_length - 1) |
275 self.assertEqual(len(description), orig_length - 1) |
276 self.assertEqual(len(rset.rows), orig_length - 1) |
276 self.assertEqual(len(rset.rows), orig_length - 1) |