[Zodb-checkins] CVS: ZODB3/ZODB/tests - testFileStorage.py:1.22

Barry Warsaw barry@wooz.org
Fri, 15 Nov 2002 12:35:11 -0500


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv3852

Modified Files:
	testFileStorage.py 
Log Message:
new_dest(): Refactored helper which removes the old destination
storage and creates a new one.  We need this here so Berkeley storage
tests can do something different.


=== ZODB3/ZODB/tests/testFileStorage.py 1.21 => 1.22 ===
--- ZODB3/ZODB/tests/testFileStorage.py:1.21	Wed Oct 30 17:15:32 2002
+++ ZODB3/ZODB/tests/testFileStorage.py	Fri Nov 15 12:35:11 2002
@@ -72,6 +72,10 @@
         StorageTestBase.removefs("Source.fs")
         StorageTestBase.removefs("Dest.fs")
 
+    def new_dest(self):
+        StorageTestBase.removefs('Dest.fs')
+        return ZODB.FileStorage.FileStorage('Dest.fs')
+
 
 def test_suite():
     suite = unittest.makeSuite(FileStorageTests, 'check')