[Zodb-checkins] CVS: ZODB3/ZODB/tests - MTStorage.py:1.11.2.1

Jeremy Hylton cvs-admin at zope.org
Tue Nov 18 12:29:47 EST 2003


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv6823/ZODB/tests

Modified Files:
      Tag: ZODB3-mvcc-2-branch
	MTStorage.py 
Log Message:
Support MTStorage tests for MappingStorage.

For tests that run arbitrary storage methods, make sure there is a
minimal set that even MappingStorage can support.  Add other methods
if they are available.


=== ZODB3/ZODB/tests/MTStorage.py 1.11 => 1.11.2.1 ===
--- ZODB3/ZODB/tests/MTStorage.py:1.11	Thu Oct  2 14:17:17 2003
+++ ZODB3/ZODB/tests/MTStorage.py	Tue Nov 18 12:29:46 2003
@@ -154,9 +154,12 @@
 class ExtStorageClientThread(StorageClientThread):
 
     def runtest(self):
-        # pick some other storage ops to execute
-        ops = [getattr(self, meth) for meth in dir(ExtStorageClientThread)
-               if meth.startswith('do_')]
+        # pick some other storage ops to execute, depending in part
+        # on the features provided by the storage.
+        names = ["do_load", "do_modifiedInVersion"]
+        if self.storage.supportsUndo():
+            names += ["do_loadSerial", "do_undoLog", "do_iterator"]
+        ops = [getattr(self, meth) for meth in names]
         assert ops, "Didn't find an storage ops in %s" % self.storage
         # do a store to guarantee there's at least one oid in self.oids
         self.dostore(0)




More information about the Zodb-checkins mailing list