Skip to content

Commit b3b784f

Browse files
author
Richard Jones
committed
tests for last fix
1 parent c4b47af commit b3b784f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/db_test_base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: db_test_base.py,v 1.28 2004-05-16 09:35:50 richard Exp $
18+
# $Id: db_test_base.py,v 1.29 2004-06-08 05:35:07 richard Exp $
1919

2020
import unittest, os, shutil, errno, imp, sys, time, pprint
2121

@@ -960,11 +960,13 @@ def testImportExport(self):
960960

961961
# grab the export
962962
export = {}
963+
journals = {}
963964
for cn,klass in self.db.classes.items():
964965
names = klass.getprops().keys()
965966
cl = export[cn] = [names+['is retired']]
966967
for id in klass.getnodeids():
967968
cl.append(klass.export_list(names, id))
969+
journals[cn] = klass.export_journals()
968970

969971
# shut down this db and nuke it
970972
self.db.close()
@@ -983,6 +985,7 @@ def testImportExport(self):
983985
for itemprops in items[1:]:
984986
maxid = max(maxid, int(klass.import_list(names, itemprops)))
985987
self.db.setid(cn, str(maxid+1))
988+
klass.import_journals(journals[cn])
986989

987990
# compare with snapshot of the database
988991
for cn, items in orig.items():

0 commit comments

Comments
 (0)