[Zodb-checkins] CVS: StandaloneZODB/bsddb3Storage/bsddb3Storage/tests - test_storage_api.py:1.21

Barry Warsaw barry@wooz.org
Tue, 16 Jul 2002 10:51:31 -0400


Update of /cvs-repository/StandaloneZODB/bsddb3Storage/bsddb3Storage/tests
In directory cvs.zope.org:/tmp/cvs-serv14707

Modified Files:
	test_storage_api.py 
Log Message:
Added AutopackTest for testing the Berkeley Autopack storage.


=== StandaloneZODB/bsddb3Storage/bsddb3Storage/tests/test_storage_api.py 1.20 => 1.21 ===
 
 
 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 @@
               '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