comparison test/test_mailgw.py @ 2229:77461135596d

s/sqlite/anydbm
author Richard Jones <richard@users.sourceforge.net>
date Tue, 20 Apr 2004 21:55:45 +0000
parents 2623b1afc2b6
children d81a7b03435f 223f4fb26a75
comparison
equal deleted inserted replaced
2228:1d1362c54c94 2229:77461135596d
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_mailgw.py,v 1.68 2004-04-18 06:14:26 richard Exp $ 11 # $Id: test_mailgw.py,v 1.69 2004-04-20 21:55:45 richard Exp $
12 12
13 # TODO: test bcc 13 # TODO: test bcc
14 14
15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822 15 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822
16 16
99 shutil.rmtree(self.dirname) 99 shutil.rmtree(self.dirname)
100 except OSError, error: 100 except OSError, error:
101 if error.errno not in (errno.ENOENT, errno.ESRCH): raise 101 if error.errno not in (errno.ENOENT, errno.ESRCH): raise
102 # create the instance 102 # create the instance
103 init.install(self.dirname, 'templates/classic') 103 init.install(self.dirname, 'templates/classic')
104 init.write_select_db(self.dirname, 'sqlite') 104 init.write_select_db(self.dirname, 'anydbm')
105 init.initialise(self.dirname, 'sekrit') 105 init.initialise(self.dirname, 'sekrit')
106 106
107 # check we can load the package 107 # check we can load the package
108 self.instance = instance.open(self.dirname) 108 self.instance = instance.open(self.dirname)
109 109

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