[SQL-CVS] r610 - trunk/SQLObject/sqlobject/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-02-16 04:29:45
|
Author: ianb Date: 2005-02-16 04:29:41 +0000 (Wed, 16 Feb 2005) New Revision: 610 Modified: trunk/SQLObject/sqlobject/tests/test_select.py Log: Excersize the lazyColumns option Modified: trunk/SQLObject/sqlobject/tests/test_select.py =================================================================== --- trunk/SQLObject/sqlobject/tests/test_select.py 2005-02-16 04:28:29 UTC (rev 609) +++ trunk/SQLObject/sqlobject/tests/test_select.py 2005-02-16 04:29:41 UTC (rev 610) @@ -26,6 +26,13 @@ count += 1 assert count == len(names) +def test_00b_lazy(): + setupIter() + count = 0 + for test in IterTest.select(lazyColumns=True): + count += 1 + assert count == len(names) + def test_01_turn_to_list(): count = 0 for test in list(IterTest.select()): @@ -46,6 +53,7 @@ test = all[i] count += 1 assert count == len(names) + def test_04_indexed_ended_by_exception(): all = IterTest.select() |