Update of /cvsroot/pywin32/pywin32/win32/test
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1157
Modified Files:
test_odbc.py
Log Message:
Add some more tests
Index: test_odbc.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/test/test_odbc.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_odbc.py 16 Sep 2008 00:48:07 -0000 1.8
--- test_odbc.py 6 Oct 2008 00:43:57 -0000 1.9
***************
*** 58,62 ****
bitfield bit, intfield integer,
floatfield float,
! datefield date
)"""),-1)
--- 58,63 ----
bitfield bit, intfield integer,
floatfield float,
! datefield date,
! rawfield varbinary(100)
)"""),-1)
***************
*** 133,136 ****
--- 134,147 ----
self._test_val('username', 'foo')
+ def testRaw(self):
+ ## Test binary data
+ self._test_val('rawfield', buffer('\1\2\3\4\0\5\6\7\8'))
+
+ def test_widechar(self):
+ """Test a unicode character that would be mangled if bound as plain character.
+ For example, previously the below was returned as ascii 'a'
+ """
+ self._test_val('username', u'\u0101')
+
def testDates(self):
import datetime
|