[SQL-CVS] r936 - trunk/SQLObject/sqlobject/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2005-08-24 13:59:31
|
Author: phd
Date: 2005-08-24 13:59:26 +0000 (Wed, 24 Aug 2005)
New Revision: 936
Modified:
trunk/SQLObject/sqlobject/tests/test_decimal.py
Log:
Fixed a bug - assertion were reversed.
Modified: trunk/SQLObject/sqlobject/tests/test_decimal.py
===================================================================
--- trunk/SQLObject/sqlobject/tests/test_decimal.py 2005-08-22 06:31:09 UTC (rev 935)
+++ trunk/SQLObject/sqlobject/tests/test_decimal.py 2005-08-24 13:59:26 UTC (rev 936)
@@ -23,6 +23,6 @@
setupClass(DecimalTable)
d = DecimalTable(col1=Decimal("21.12"))
if isinstance(d.col1, Decimal):
+ assert d.col1 == Decimal("21.12")
+ else:
assert d.col1 == 21.12
- else:
- assert d.col1 == Decimal("21.12")
|