[Zope3-checkins] CVS: Zope3/src/zodb/storage/tests - undo.py:1.3
Jeremy Hylton
jeremy@zope.com
Tue, 4 Feb 2003 17:15:12 -0500
Update of /cvs-repository/Zope3/src/zodb/storage/tests
In directory cvs.zope.org:/tmp/cvs-serv1294/storage/tests
Modified Files:
undo.py
Log Message:
Refactor storage interfaces.
Move a bunch of exceptions related to storages from zodb.interfaces to
zodb.storages.interfaces.
Add __implements__ statements in all the concrete storage classes.
Add a simple (good?) mechanism to propagate __implements__ values from
a ZEO storage to its clients.
Remove all use of supportsXXX() methods in favor of
ISomeInterface.isImplementedBy().
=== Zope3/src/zodb/storage/tests/undo.py 1.2 => 1.3 ===
--- Zope3/src/zodb/storage/tests/undo.py:1.2 Wed Dec 25 09:12:20 2002
+++ Zope3/src/zodb/storage/tests/undo.py Tue Feb 4 17:15:09 2003
@@ -7,6 +7,7 @@
import types
from zodb import interfaces
+from zodb.storage.interfaces import IUndoStorage
from zodb.ztransaction import Transaction
from zodb.utils import u64, p64, z64
from zodb.db import DB
@@ -67,6 +68,9 @@
for txn in iter:
for rec in txn:
pass
+
+ def checkIUndoStorage(self):
+ self.assert_(IUndoStorage.isImplementedBy(self._storage))
def checkSimpleTransactionalUndo(self):
eq = self.assertEqual