[Zodb-checkins] CVS: ZODB3/ZODB/tests - testStorageConfig.py:1.6
Barry Warsaw
barry@wooz.org
Wed, 18 Dec 2002 17:15:06 -0500
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv15273/ZODB/tests
Modified Files:
testStorageConfig.py
Log Message:
For alignment with ZODB4, renaming these storages for ZODB3 3.2.
bsddb3Storage becomes BDBStorage
Full becomes BDBFullStorage
Minimal becomes BDBMinimalStorage
Removing MinimalReplicated.py, Packless.py, and base.py
=== ZODB3/ZODB/tests/testStorageConfig.py 1.5 => 1.6 ===
--- ZODB3/ZODB/tests/testStorageConfig.py:1.5 Thu Dec 5 19:00:52 2002
+++ ZODB3/ZODB/tests/testStorageConfig.py Wed Dec 18 17:15:05 2002
@@ -38,7 +38,7 @@
except:
pass
try:
- # Full storage creates a directory
+ # BDBFullStorage storage creates a directory
if os.path.isdir(self.tmpfn):
shutil.rmtree(self.tmpfn)
else:
@@ -117,12 +117,12 @@
def testFullStorage(self):
try:
- from bsddb3Storage.Full import Full
+ from BDBStorage.BDBFullStorage import BDBFullStorage
except ImportError:
return
sample = """
<Storage>
- type Full
+ type BDBFullStorage
name %s
cachesize 1000
</Storage>
@@ -132,24 +132,24 @@
rootconf = ZConfig.loadfile(io)
storageconf = rootconf.getSection("Storage")
cls, args = StorageConfig.getStorageInfo(storageconf)
- self.assertEqual(cls, Full)
+ self.assertEqual(cls, BDBFullStorage)
# It's too hard to test the config instance equality
args = args.copy()
del args['config']
self.assertEqual(args, {"name": self.tmpfn})
self.storage = StorageConfig.createStorage(storageconf)
- self.assert_(isinstance(self.storage, Full))
+ self.assert_(isinstance(self.storage, BDBFullStorage))
# XXX _config isn't public
self.assert_(self.storage._config.cachesize, 1000)
def testMinimalStorage(self):
try:
- from bsddb3Storage.Minimal import Minimal
+ from BDBStorage.BDBMinimalStorage import BDBMinimalStorage
except ImportError:
return
sample = """
<Storage>
- type Minimal
+ type BDBMinimalStorage
name %s
cachesize 1000
</Storage>
@@ -159,13 +159,13 @@
rootconf = ZConfig.loadfile(io)
storageconf = rootconf.getSection("Storage")
cls, args = StorageConfig.getStorageInfo(storageconf)
- self.assertEqual(cls, Minimal)
+ self.assertEqual(cls, BDBMinimalStorage)
# It's too hard to test the config instance equality
args = args.copy()
del args['config']
self.assertEqual(args, {"name": self.tmpfn})
self.storage = StorageConfig.createStorage(storageconf)
- self.assert_(isinstance(self.storage, Minimal))
+ self.assert_(isinstance(self.storage, BDBMinimalStorage))
# XXX _config isn't public
self.assert_(self.storage._config.cachesize, 1000)