[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - testFileStorage.py:1.19.6.7

Tim Peters tim.one at comcast.net
Mon Jun 2 11:56:32 EDT 2003


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv19559/lib/python/ZODB/tests

Modified Files:
      Tag: Zope-2_6-branch
	testFileStorage.py 
Log Message:
checkfsrecover() is no longer valid, so deleted it.  Jeremy says the
functionality is tested by newer recently backported tests instead.


=== Zope/lib/python/ZODB/tests/testFileStorage.py 1.19.6.6 => 1.19.6.7 ===
--- Zope/lib/python/ZODB/tests/testFileStorage.py:1.19.6.6	Mon May 19 04:48:07 2003
+++ Zope/lib/python/ZODB/tests/testFileStorage.py	Mon Jun  2 10:56:32 2003
@@ -175,34 +175,6 @@
 
         self.failUnless(self._storage._records_before_save > 20)
 
-    def checkfsrecover(self):
-        # an absolutely minimal test of fsrecover
-        # Verify that calling recover on a small, correct storage
-        # produces a duplicate of the original.
-        for i in range(5):
-            oid = self._storage.new_oid()
-            revid = None
-            for j in range(5):
-                revid = self._dostore(oid, revid=revid)
-        
-        temp = sys.stdout
-        sys.stdout = StringIO.StringIO()
-        try:
-            recover(["", "FileStorageTests.fs", "fsrecover.fs"])
-        finally:
-            sys.stdout = temp
-            
-        # more verbose comparison of fiel equality
-        f = open("FileStorageTests.fs", "rb")
-        fguts = f.read()
-        f.close()
-        g = open("fsrecover.fs", "rb")
-        gguts = g.read()
-        g.close()
-        self.assertEqual(fguts, gguts)
-        
-        StorageTestBase.removefs("fsrecover.fs")
-
 class FileStorageRecoveryTest(
     StorageTestBase.StorageTestBase,
      IteratorStorage.IteratorDeepCompare,




More information about the Zodb-checkins mailing list