comparison test/db_test_base.py @ 2689:9d044127c5eb

tracker.open() requires the 2nd argument - journal tag name
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 26 Sep 2004 13:25:55 +0000
parents 99bd8a4b8abf
children c26716932ffe
comparison
equal deleted inserted replaced
2688:eb14c12813a0 2689:9d044127c5eb
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: db_test_base.py,v 1.45 2004-09-26 12:17:42 a1s Exp $ 18 # $Id: db_test_base.py,v 1.46 2004-09-26 13:25:55 a1s Exp $
19 19
20 import unittest, os, shutil, errno, imp, sys, time, pprint 20 import unittest, os, shutil, errno, imp, sys, time, pprint
21 21
22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \
23 Interval, DatabaseError, Boolean, Number, Node 23 Interval, DatabaseError, Boolean, Number, Node
1375 1375
1376 # initialize the tracker database 1376 # initialize the tracker database
1377 tracker.init(password.Password('sekrit')) 1377 tracker.init(password.Password('sekrit'))
1378 1378
1379 # and open the database 1379 # and open the database
1380 db = self.db = tracker.open() 1380 db = self.db = tracker.open('test')
1381 1381
1382 # check the basics of the schema and initial data set 1382 # check the basics of the schema and initial data set
1383 l = db.priority.list() 1383 l = db.priority.list()
1384 ae(l, ['1', '2', '3', '4', '5']) 1384 ae(l, ['1', '2', '3', '4', '5'])
1385 l = db.status.list() 1385 l = db.status.list()

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