[Zodb-checkins] CVS: ZODB3/ZEO/tests - testZEO.py:1.61

Barry Warsaw barry@wooz.org
Mon, 13 Jan 2003 19:10:58 -0500


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv30187

Modified Files:
	testZEO.py 
Log Message:
Added MappingStorageTests.  Set FileStorageTests and BDBTests to level
2 so they aren't normally run.


=== ZODB3/ZEO/tests/testZEO.py 1.60 => 1.61 ===
--- ZODB3/ZEO/tests/testZEO.py:1.60	Fri Jan  3 17:52:09 2003
+++ ZODB3/ZEO/tests/testZEO.py	Mon Jan 13 19:10:55 2003
@@ -128,6 +128,7 @@
 
 class FileStorageTests(GenericTests):
     """Test ZEO backed by a FileStorage."""
+    level = 2
 
     def setUp(self):
         zLOG.LOG("testZEO", zLOG.INFO, "setUp() %s" % self.id())
@@ -158,9 +159,9 @@
         </Storage>
         """ % filename
 
-
 class BDBTests(FileStorageTests):
     """ZEO backed by a Berkeley full storage."""
+    level = 2
 
     def getStorage(self):
         self._envdir = tempfile.mktemp()
@@ -172,9 +173,23 @@
         </Storage>
         """ % self._envdir
 
+class MappingStorageTests(FileStorageTests):
+    """ZEO backed by a Mapping storage."""
+
+    def getStorage(self):
+        self._envdir = tempfile.mktemp()
+        # Return a 1-tuple
+        return """\
+        <Storage>
+            type MappingStorage
+            name %s
+        </Storage>
+        """ % self._envdir
+
+
 
 
-test_classes = [FileStorageTests]
+test_classes = [FileStorageTests, MappingStorageTests]
 
 import BDBStorage
 if BDBStorage.is_available: