[Zodb-checkins] CVS: Packages/ZEO - testZEO.py:1.1.2.8

jeremy@digicool.com jeremy@digicool.com
Tue, 1 May 2001 14:58:22 -0400 (EDT)


Update of /cvs-repository/Packages/ZEO/tests
In directory korak:/tmp/cvs-serv3945/tests

Modified Files:
      Tag: ZEO-ZRPC-Dev
	testZEO.py 
Log Message:
add Synchronization tests





--- Updated File testZEO.py in package Packages/ZEO --
--- testZEO.py	2001/04/27 21:03:36	1.1.2.7
+++ testZEO.py	2001/05/01 18:58:20	1.1.2.8
@@ -16,7 +16,7 @@
 # Sorry Jim...
 from ZODB.tests import StorageTestBase, BasicStorage, VersionStorage, \
      TransactionalUndoStorage, TransactionalUndoVersionStorage, \
-     PackableStorage
+     PackableStorage, Synchronization
 
 ZERO = '\0'*8
 import pickle
@@ -62,6 +62,7 @@
         s2 = self._get_serial(r2)
         self._storage.tpc_finish(self._transaction)
         # s1, s2 can be None or dict
+        assert not (s1 and s2)
         return s1 and s1[oid] or s2 and s2[oid]
 
     def _get_serial(self, r):
@@ -79,8 +80,9 @@
 class GenericTests(ZEOTestBase,
                    BasicStorage.BasicStorage,
                    VersionStorage.VersionStorage,
-                   TransactionalUndoStorage.TransactionalUndoStorage,
                    PackableStorage.PackableStorage,
+                   Synchronization.SynchronizedStorage,
+                   TransactionalUndoStorage.TransactionalUndoStorage,
       TransactionalUndoVersionStorage.TransactionalUndoVersionStorage,
                    ):
     """An abstract base class for ZEO tests