Commit ce903ea5 authored by Barry Warsaw's avatar Barry Warsaw

Added AutopackTest for testing the Berkeley Autopack storage.

parent 43cd5dd3
......@@ -33,7 +33,6 @@ from ZODB.tests import ConflictResolution
class MinimalTest(BerkeleyTestBase.MinimalTestBase, BasicStorage):
def checkVersionedStoreAndLoad(self):
# This storage doesn't support versions, so we should get an exception
oid = self._storage.new_oid()
......@@ -58,11 +57,21 @@ class FullTest(BerkeleyTestBase.FullTestBase, BasicStorage,
'FullTest.checkVersionIterator() temporarily disabled.'
class AutopackTest(BerkeleyTestBase.AutopackTestBase, BasicStorage):
def checkVersionedStoreAndLoad(self):
# This storage doesn't support versions, so we should get an exception
oid = self._storage.new_oid()
self.assertRaises(POSException.Unsupported,
self._dostore,
oid, data=11, version='a version')
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(MinimalTest, 'check'))
suite.addTest(unittest.makeSuite(FullTest, 'check'))
suite.addTest(unittest.makeSuite(AutopackTest, 'check'))
return suite
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment