[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests - test_zopecursor.py:1.4
Sidnei da Silva
sidnei@x3ng.com.br
Fri, 4 Jul 2003 09:33:42 -0400
Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv4237/tests
Modified Files:
test_zopecursor.py
Log Message:
Fix unittests according to the interface docstring and fix codee accordingly
=== Zope3/src/zope/app/rdb/tests/test_zopecursor.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/rdb/tests/test_zopecursor.py:1.3 Thu May 1 15:35:30 2003
+++ Zope3/src/zope/app/rdb/tests/test_zopecursor.py Fri Jul 4 09:33:38 2003
@@ -41,7 +41,7 @@
description = ((None, 'string'), (None, 'int'), (None, 'foo'))
def fetchone(self):
- return raw[:1]
+ return raw[:1][0]
def fetchall(self):
return raw
@@ -85,7 +85,7 @@
def test_cursor_fetchone(self):
results = self.cursor.fetchone()
- expected = converted[:1]
+ expected = converted[:1][0]
self.assertEqual(results, expected,
'type conversion was not performed in cursor.fetchone:\n'
'got %r, expected %r' % (results, expected))