diff test/db_test_base.py @ 2400:5fd066bcf9cf

tests for last fix
author Richard Jones <richard@users.sourceforge.net>
date Tue, 08 Jun 2004 05:35:07 +0000
parents fa2f7ba34399
children 89072e66b5f5
line wrap: on
line diff
--- a/test/db_test_base.py	Tue Jun 08 05:30:56 2004 +0000
+++ b/test/db_test_base.py	Tue Jun 08 05:35:07 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: db_test_base.py,v 1.28 2004-05-16 09:35:50 richard Exp $ 
+# $Id: db_test_base.py,v 1.29 2004-06-08 05:35:07 richard Exp $ 
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -960,11 +960,13 @@
 
         # grab the export
         export = {}
+        journals = {}
         for cn,klass in self.db.classes.items():
             names = klass.getprops().keys()
             cl = export[cn] = [names+['is retired']]
             for id in klass.getnodeids():
                 cl.append(klass.export_list(names, id))
+            journals[cn] = klass.export_journals()
 
         # shut down this db and nuke it
         self.db.close()
@@ -983,6 +985,7 @@
             for itemprops in items[1:]:
                 maxid = max(maxid, int(klass.import_list(names, itemprops)))
             self.db.setid(cn, str(maxid+1))
+            klass.import_journals(journals[cn])
 
         # compare with snapshot of the database
         for cn, items in orig.items():

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