diff test/test_bsddb.py @ 2082:c091cacdc505

Finished implementation of session and one-time-key stores for RDBMS backends. Refactored the API of sessions and their interaction with the backend database a fair bit too. Added some session tests. Nothing testing ageing yet, 'cos that's a pain inna ass to test :) Note: metakit backend still uses the *dbm implementation. It might want to implement its own session store some day, as it'll be faster than the *dbm one.
author Richard Jones <richard@users.sourceforge.net>
date Thu, 18 Mar 2004 01:58:46 +0000
parents f9316d2cd5ba
children
line wrap: on
line diff
--- a/test/test_bsddb.py	Wed Mar 17 22:01:37 2004 +0000
+++ b/test/test_bsddb.py	Thu Mar 18 01:58:46 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: test_bsddb.py,v 1.2 2003-11-14 00:11:19 richard Exp $ 
+# $Id: test_bsddb.py,v 1.3 2004-03-18 01:58:46 richard Exp $ 
 
 import unittest, os, shutil, time
 
@@ -41,6 +41,10 @@
 class bsddbClassicInitTest(ClassicInitTest):
     backend = 'bsddb'
 
+from session_common import DBMTest
+class bsddbSessionTest(bsddbOpener, DBMTest):
+    pass
+
 def test_suite():
     suite = unittest.TestSuite()
     if not hasattr(backends, 'bsddb'):
@@ -51,6 +55,7 @@
     suite.addTest(unittest.makeSuite(bsddbROTest))
     suite.addTest(unittest.makeSuite(bsddbSchemaTest))
     suite.addTest(unittest.makeSuite(bsddbClassicInitTest))
+    suite.addTest(unittest.makeSuite(bsddbSessionTest))
     return suite
 
 if __name__ == '__main__':

Roundup Issue Tracker: http://roundup-tracker.org/