Skip to content

Commit e05769a

Browse files
author
Richard Jones
committed
fixes to unit tests
1 parent d97b1bd commit e05769a

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

test/test_cgi.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_cgi.py,v 1.11 2003-02-18 06:15:21 richard Exp $
11+
# $Id: test_cgi.py,v 1.12 2003-02-28 03:33:25 richard Exp $
1212

1313
import unittest, os, shutil, errno, sys, difflib, cgi, re
1414

@@ -45,7 +45,8 @@ def setUp(self):
4545
except OSError, error:
4646
if error.errno not in (errno.ENOENT, errno.ESRCH): raise
4747
# create the instance
48-
init.install(self.dirname, 'classic', 'anydbm')
48+
init.install(self.dirname, 'classic')
49+
init.write_select_db(self.dirname, 'anydbm')
4950
init.initialise(self.dirname, 'sekrit')
5051
# check we can load the package
5152
self.instance = instance.open(self.dirname)

test/test_init.py

Lines changed: 3 additions & 2 deletions
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: test_init.py,v 1.20 2002-09-24 01:59:44 richard Exp $
18+
# $Id: test_init.py,v 1.21 2003-02-28 03:33:25 richard Exp $
1919

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

@@ -43,7 +43,8 @@ def testCreation(self):
4343
ae = self.assertEqual
4444

4545
# create the instance
46-
init.install(self.dirname, 'classic', self.backend)
46+
init.install(self.dirname, 'classic')
47+
init.write_select_db(self.dirname, self.backend)
4748
init.initialise(self.dirname, 'sekrit')
4849

4950
# check we can load the package

test/test_mailgw.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_mailgw.py,v 1.39 2003-02-06 05:43:49 richard Exp $
11+
# $Id: test_mailgw.py,v 1.40 2003-02-28 03:33:25 richard Exp $
1212

1313
import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
1414

@@ -68,7 +68,8 @@ def setUp(self):
6868
except OSError, error:
6969
if error.errno not in (errno.ENOENT, errno.ESRCH): raise
7070
# create the instance
71-
init.install(self.dirname, 'classic', 'anydbm')
71+
init.install(self.dirname, 'classic')
72+
init.write_select_db(self.dirname, 'anydbm')
7273
init.initialise(self.dirname, 'sekrit')
7374
# check we can load the package
7475
self.instance = instance.open(self.dirname)

0 commit comments

Comments
 (0)