[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder/tests - testTemporaryStorage.py:1.3.2.1
Chris McDonough
chrism@zope.com
Tue, 8 Jan 2002 10:17:27 -0500
Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder/tests
In directory cvs.zope.org:/tmp/cvs-serv23876/tests
Modified Files:
Tag: Zope-2_5-branch
testTemporaryStorage.py
Log Message:
Fixed bug in TemporaryStorage loadSerial method which could result in unpack tuple of wrong size errors.
=== Zope/lib/python/Products/TemporaryFolder/tests/testTemporaryStorage.py 1.3 => 1.3.2.1 ===
TemporaryStorage.CONFLICT_CACHE_MAXAGE = old_maxage
+ def checkConflictCacheLoadSerialRaisesConflictError(self):
+ storage = self._storage
+ from ZODB.POSException import ConflictError
+ self.assertRaises(ConflictError, self._loadNonexistentSerial)
+
+ def _loadNonexistentSerial(self):
+ self._storage.loadSerial('foo!', 'bar!')
+
def test_suite():
suite = unittest.makeSuite(TemporaryStorageTests, 'check')
suite2 = unittest.makeSuite(Corruption.FileStorageCorruptTests, 'check')