[SQL-CVS] r2997 - SQLObject/trunk/sqlobject/mysql/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2007-09-26 19:43:08
|
Author: novalis
Date: 2007-09-26 13:43:04 -0600 (Wed, 26 Sep 2007)
New Revision: 2997
Modified:
SQLObject/trunk/sqlobject/mysql/tests/test_unicode.py
Log:
check that values roundtrip in unicode
Modified: SQLObject/trunk/sqlobject/mysql/tests/test_unicode.py
===================================================================
--- SQLObject/trunk/sqlobject/mysql/tests/test_unicode.py 2007-09-26 19:41:09 UTC (rev 2996)
+++ SQLObject/trunk/sqlobject/mysql/tests/test_unicode.py 2007-09-26 19:43:04 UTC (rev 2997)
@@ -29,5 +29,11 @@
#test string that contain non-plain-text
#note: unicode column should be in unicode.
#blob column should be text.
- MyTable(strc="", unic=u"\x82", bloc="\x82")
+ MyTable(strc="unic", unic=u"\x82", bloc="\x82")
+ m = MyTable.selectBy(strc='unic')
+ m = m[0]
+ assert m.bloc == "\x82"
+ assert m.unic == u"\x82"
+
+
|