[Zodb-checkins] CVS: ZODB3/ZODB/tests - VersionStorage.py:1.17
Jeremy Hylton
jeremy@zope.com
Wed, 28 Aug 2002 14:16:38 -0400
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv13178
Modified Files:
VersionStorage.py
Log Message:
Decree that abortVersion() should not change the non-version serialno.
Remove checkNewSerialOnAbortVersion and checkNewSerialOnCommitVersion.
They duplicate checkCommitVersionSerialno and checkAbortVersionSerialno.
=== ZODB3/ZODB/tests/VersionStorage.py 1.16 => 1.17 ===
--- ZODB3/ZODB/tests/VersionStorage.py:1.16 Wed Aug 28 12:25:19 2002
+++ ZODB3/ZODB/tests/VersionStorage.py Wed Aug 28 14:16:32 2002
@@ -238,35 +238,6 @@
finally:
self._storage.tpc_abort(t)
-
- def checkNewSerialOnAbortVersion(self):
- eq = self.assertEqual
- oid, version = self._setup_version()
- data, vserial = self._storage.load(oid, version)
- data, nserial = self._storage.load(oid, '')
-
- self._abortVersion(version)
- data, serial = self._storage.load(oid, version)
-
- self.failUnless(serial != vserial and serial != nserial,
- "New serial, %r, should be different from the old "
- "version, %r, and non-version, %r, serials."
- % (serial, vserial, nserial))
-
- def checkNewSerialOnCommitVersion(self):
- eq = self.assertEqual
- oid, version = self._setup_version()
- data, vserial = self._storage.load(oid, version)
- data, nserial = self._storage.load(oid, '')
-
- self._commitVersion(version, '')
- data, serial = self._storage.load(oid, '')
-
- self.failUnless(serial != vserial and serial != nserial,
- "New serial, %r, should be different from the old "
- "version, %r, and non-version, %r, serials."
- % (serial, vserial, nserial))
-
def checkNewSerialOnCommitVersionToVersion(self):
eq = self.assertEqual
oid, version = self._setup_version()