[Zodb-checkins] CVS: ZODB3/BDBStorage/tests - test_create.py:1.11.6.2
Barry Warsaw
barry@wooz.org
Tue, 21 Jan 2003 17:38:58 -0500
Update of /cvs-repository/ZODB3/BDBStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv1884
Modified Files:
Tag: ZODB3-3_1-branch
test_create.py
Log Message:
Backporting of various changes from the 3.2 branch. Specifically:
check* -> test*
=== ZODB3/BDBStorage/tests/test_create.py 1.11.6.1 => 1.11.6.2 ===
--- ZODB3/BDBStorage/tests/test_create.py:1.11.6.1 Tue Jan 7 14:40:44 2003
+++ ZODB3/BDBStorage/tests/test_create.py Tue Jan 21 17:38:54 2003
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# Copyright (c) 2001 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -28,7 +28,7 @@
class TestMixin:
- def checkDBHomeExists(self):
+ def testDBHomeExists(self):
self.failUnless(os.path.isdir(BerkeleyTestBase.DBHOME))
@@ -42,7 +42,7 @@
class FullOpenExistingTest(BerkeleyTestBase.FullTestBase):
- def checkOpenWithExistingVersions(self):
+ def testOpenWithExistingVersions(self):
version = 'test-version'
oid = self._storage.new_oid()
revid = self._dostore(oid, data=7, version=version)
@@ -51,7 +51,7 @@
self._storage = self.ConcreteStorage(BerkeleyTestBase.DBHOME)
self.assertEqual(self._storage.modifiedInVersion(oid), version)
- def checkOpenAddVersion(self):
+ def testOpenAddVersion(self):
eq = self.assertEqual
version1 = 'test-version'
oid1 = self._storage.new_oid()
@@ -84,7 +84,7 @@
self._zap_dbhome(dir)
raise
- def checkCloseWithCheckpointingThread(self):
+ def testCloseWithCheckpointingThread(self):
# All the interesting stuff happens in the setUp and tearDown
time.sleep(20)
@@ -94,7 +94,7 @@
def _mk_dbhome(self, dir):
self._dir = dir
- def checkOpenWithBogusConfig(self):
+ def testOpenWithBogusConfig(self):
class C: pass
c = C()
# This instance won't have the necessary attributes, so the creation
@@ -110,11 +110,11 @@
def test_suite():
suite = unittest.TestSuite()
if BDBStorage.is_available:
- suite.addTest(unittest.makeSuite(MinimalCreateTest, 'check'))
- suite.addTest(unittest.makeSuite(FullCreateTest, 'check'))
- suite.addTest(unittest.makeSuite(FullOpenExistingTest, 'check'))
- suite.addTest(unittest.makeSuite(FullOpenCloseTest, 'check'))
- suite.addTest(unittest.makeSuite(OpenRecoveryTest, 'check'))
+ suite.addTest(unittest.makeSuite(MinimalCreateTest))
+ suite.addTest(unittest.makeSuite(FullCreateTest))
+ suite.addTest(unittest.makeSuite(FullOpenExistingTest))
+ suite.addTest(unittest.makeSuite(FullOpenCloseTest))
+ suite.addTest(unittest.makeSuite(OpenRecoveryTest))
return suite