[Zodb-checkins] CVS: StandaloneZODB/ZODB/tests - MTStorage.py:1.1.2.2
Jeremy Hylton
jeremy@zope.com
Sun, 6 Jan 2002 22:21:38 -0500
Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv25847/ZODB/tests
Modified Files:
Tag: Standby-branch
MTStorage.py
Log Message:
Don't add do_XXX methods unless the storage implements XXX.
=== StandaloneZODB/ZODB/tests/MTStorage.py 1.1.2.1 => 1.1.2.2 ===
def run(self):
ops = [getattr(self, meth) for meth in dir(self)
- if meth.startswith('do_')]
+ if meth.startswith('do_') and hasattr(self.storage, meth[3:])]
# do a store to guarantee there's at least one oid in self.oids
self.dostore(0)