[Zodb-checkins] CVS: ZODB3/BDBStorage/tests - test_autopack.py:1.7

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


Update of /cvs-repository/ZODB3/BDBStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv29366

Modified Files:
	test_autopack.py 
Log Message:
check*() -> test*()

Also, set the suite's test level to 2 so these aren't normally run
(even if you have BerkeleyDB installed).  These tests take a long
time.


=== ZODB3/BDBStorage/tests/test_autopack.py 1.6 => 1.7 ===
--- ZODB3/BDBStorage/tests/test_autopack.py:1.6	Fri Jan  3 17:47:10 2003
+++ ZODB3/BDBStorage/tests/test_autopack.py	Mon Jan 13 19:05:11 2003
@@ -69,7 +69,7 @@
 class TestAutopack(TestAutopackBase):
     ConcreteStorage = BDBFullStorage
 
-    def checkAutopack(self):
+    def testAutopack(self):
         unless = self.failUnless
         raises = self.assertRaises
         storage = self._storage
@@ -110,7 +110,7 @@
         config.classicpack = 1
         return config
 
-    def checkAutomaticClassicPack(self):
+    def testAutomaticClassicPack(self):
         unless = self.failUnless
         raises = self.assertRaises
         storage = self._storage
@@ -138,7 +138,7 @@
         raises(KeyError, storage.loadSerial, oid, revid2)
         raises(KeyError, storage.loadSerial, oid, revid3)
 
-    def checkCycleUnreachable(self):
+    def testCycleUnreachable(self):
         unless = self.failUnless
         raises = self.assertRaises
         storage = self._storage
@@ -189,7 +189,7 @@
         config.frequency = 3
         return config
 
-    def checkRootUnreachable(self):
+    def testRootUnreachable(self):
         unless = self.failUnless
         raises = self.assertRaises
         storage = self._storage
@@ -218,7 +218,7 @@
         unless(storage.load(ZERO, ''))
         raises(KeyError, storage.load, oid, '')
 
-    def checkCycleUnreachable(self):
+    def testCycleUnreachable(self):
         unless = self.failUnless
         raises = self.assertRaises
         storage = self._storage
@@ -261,10 +261,11 @@
 
 def test_suite():
     suite = unittest.TestSuite()
+    suite.level = 2
     if BDBStorage.is_available:
-        suite.addTest(unittest.makeSuite(TestAutopack, 'check'))
-        suite.addTest(unittest.makeSuite(TestAutomaticClassicPack, 'check'))
-        suite.addTest(unittest.makeSuite(TestMinimalPack, 'check'))
+        suite.addTest(unittest.makeSuite(TestAutopack))
+        suite.addTest(unittest.makeSuite(TestAutomaticClassicPack))
+        suite.addTest(unittest.makeSuite(TestMinimalPack))
     return suite