comparison test/test_cgi.py @ 1592:4074e2336eed

fixes to unit tests for recent changes
author Richard Jones <richard@users.sourceforge.net>
date Thu, 17 Apr 2003 06:51:44 +0000
parents b975da59cd11
children 8a908bbad1ef
comparison
equal deleted inserted replaced
1591:21312a7564fd 1592:4074e2336eed
6 # 6 #
7 # This module is distributed in the hope that it will be useful, 7 # This module is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # 10 #
11 # $Id: test_cgi.py,v 1.14 2003-03-26 06:46:17 richard Exp $ 11 # $Id: test_cgi.py,v 1.15 2003-04-17 06:51:44 richard Exp $
12 12
13 import unittest, os, shutil, errno, sys, difflib, cgi, re 13 import unittest, os, shutil, errno, sys, difflib, cgi, re
14 14
15 from roundup.cgi import client 15 from roundup.cgi import client
16 from roundup import init, instance, password, hyperdb, date 16 from roundup import init, instance, password, hyperdb, date
43 try: 43 try:
44 shutil.rmtree(self.dirname) 44 shutil.rmtree(self.dirname)
45 except OSError, error: 45 except OSError, error:
46 if error.errno not in (errno.ENOENT, errno.ESRCH): raise 46 if error.errno not in (errno.ENOENT, errno.ESRCH): raise
47 # create the instance 47 # create the instance
48 init.install(self.dirname, 'classic') 48 init.install(self.dirname, 'templates/classic')
49 init.write_select_db(self.dirname, 'anydbm') 49 init.write_select_db(self.dirname, 'anydbm')
50 init.initialise(self.dirname, 'sekrit') 50 init.initialise(self.dirname, 'sekrit')
51 # check we can load the package 51 # check we can load the package
52 self.instance = instance.open(self.dirname) 52 self.instance = instance.open(self.dirname)
53 # and open the database 53 # and open the database

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