Author: phd
Date: 2010-03-22 11:12:23 -0600 (Mon, 22 Mar 2010)
New Revision: 4148
Modified:
SQLObject/branches/0.11/sqlobject/tests/test_unicode.py
Log:
Compare directly to s.
Modified: SQLObject/branches/0.11/sqlobject/tests/test_unicode.py
===================================================================
--- SQLObject/branches/0.11/sqlobject/tests/test_unicode.py 2010-03-22 17:03:04 UTC (rev 4147)
+++ SQLObject/branches/0.11/sqlobject/tests/test_unicode.py 2010-03-22 17:12:23 UTC (rev 4148)
@@ -8,7 +8,7 @@
class TestUnicode(SQLObject):
count = IntCol(alternateID=True)
col1 = UnicodeCol(alternateID=True, length=100)
- col2 = UnicodeCol(dbEncoding='latin-1')
+ col2 = UnicodeCol(dbEncoding='latin1')
data = [u'\u00f0', u'test', 'ascii test']
items = []
@@ -25,8 +25,10 @@
def test_create():
setup()
for s, item in zip(data, items):
+ print type(item.col1), repr(item.col1)
+ print type(item.col2), repr(item.col1)
assert item.col1 == s
- assert item.col1 == item.col2
+ assert item.col2 == s
conn = TestUnicode._connection
rows = conn.queryAll("""
|