[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests -
test_zopeconnection.py:1.4 test_zopedbtransactionmanager.py:1.4
Fred L. Drake, Jr.
fred at zope.com
Fri Feb 20 11:57:59 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv22507/src/zope/app/rdb/tests
Modified Files:
test_zopeconnection.py test_zopedbtransactionmanager.py
Log Message:
update to replace ZODB 4 with ZODB 3
=== Zope3/src/zope/app/rdb/tests/test_zopeconnection.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/rdb/tests/test_zopeconnection.py:1.3 Thu May 1 15:35:30 2003
+++ Zope3/src/zope/app/rdb/tests/test_zopeconnection.py Fri Feb 20 11:57:28 2004
@@ -39,7 +39,7 @@
cursor.execute('select * from blah')
self.assertEqual(zc._txn_registered, True)
- self.assertEqual(len(t._resources), 1)
+ self.assertEqual(len(t._objects), 1)
def test_commit(self):
t = get_transaction()
=== Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py:1.3 Thu May 1 15:35:30 2003
+++ Zope3/src/zope/app/rdb/tests/test_zopedbtransactionmanager.py Fri Feb 20 11:57:28 2004
@@ -15,7 +15,7 @@
$Id$
"""
-from unittest import TestCase, main, makeSuite
+from unittest import TestCase, main, makeSuite, TestSuite
from transaction import get_transaction
from transaction.tests.abstestIDataManager import IDataManagerTests
from zope.app.rdb import ZopeDBTransactionManager
@@ -44,7 +44,11 @@
self.assertEqual(self.conn._called.get('commit'), 1)
def test_suite():
- return makeSuite(TxnMgrTest)
+ from doctest import DocTestSuite
+ return TestSuite((
+ DocTestSuite('zope.app.rdb'),
+ makeSuite(TxnMgrTest),
+ ))
if __name__=='__main__':
main(defaultTest='test_suite')
More information about the Zope3-Checkins
mailing list