[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/tests/BasicStorage.py Added a storage interface verification.
Jim Fulton
jim at zope.com
Sat Oct 18 13:34:33 EDT 2008
Log message for revision 92363:
Added a storage interface verification.
Changed:
U ZODB/trunk/src/ZODB/tests/BasicStorage.py
-=-
Modified: ZODB/trunk/src/ZODB/tests/BasicStorage.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/BasicStorage.py 2008-10-18 17:34:29 UTC (rev 92362)
+++ ZODB/trunk/src/ZODB/tests/BasicStorage.py 2008-10-18 17:34:32 UTC (rev 92363)
@@ -25,6 +25,8 @@
from ZODB.tests.StorageTestBase import handle_serials
import transaction
+import zope.interface
+import zope.interface.verify
ZERO = '\0'*8
@@ -188,3 +190,7 @@
self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
self._storage.tpc_vote(t)
self._storage.tpc_finish(t)
+
+ def checkInterfaces(self):
+ for iface in zope.interface.providedBy(self._storage):
+ zope.interface.verify.verifyObject(iface, self._storage)
More information about the Zodb-checkins
mailing list