[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB/tests - testZopeDatabaseAdapter.py:1.2
Albertas Agejevas
alga@codeworks.lt
Tue, 5 Nov 2002 07:09:50 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/RDB/tests
In directory cvs.zope.org:/tmp/cvs-serv12338/tests
Modified Files:
testZopeDatabaseAdapter.py
Log Message:
Fixed forgotten self in a method signature, added a unit test.
=== Zope3/lib/python/Zope/App/RDB/tests/testZopeDatabaseAdapter.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/RDB/tests/testZopeDatabaseAdapter.py:1.1 Wed Jul 10 19:37:26 2002
+++ Zope3/lib/python/Zope/App/RDB/tests/testZopeDatabaseAdapter.py Tue Nov 5 07:09:49 2002
@@ -63,6 +63,12 @@
conn = da()
self.assertEqual(ZopeConnection, conn.__class__)
+ def testGetConverter(self):
+ from Zope.App.RDB.ZopeDatabaseAdapter import identity
+ da = self._da
+ conv = da.getConverter('any')
+ self.assert_(conv is identity, "default converter is wrong")
+
def test_suite():
suite = unittest.TestSuite()