Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 1905:dc43e339e607
Centralised conversion of user-input data to hyperdb values
(bug [SF#802405], bug [SF#817217], rfe [SF#816994])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 11 Nov 2003 00:35:14 +0000 |
| parents | e1b3ca0c0f9a |
| children | 20cfd25cffda |
comparison
equal
deleted
inserted
replaced
| 1904:9445caec3ff5 | 1905:dc43e339e607 |
|---|---|
| 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.60 2003-11-03 22:23:02 jlgijsbers Exp $ | 11 # $Id: test_mailgw.py,v 1.61 2003-11-11 00:35:14 richard Exp $ |
| 12 | 12 |
| 13 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822 | 13 import unittest, tempfile, os, shutil, errno, imp, sys, difflib, rfc822 |
| 14 | 14 |
| 15 from cStringIO import StringIO | 15 from cStringIO import StringIO |
| 16 | 16 |
| 91 if error.errno not in (errno.ENOENT, errno.ESRCH): raise | 91 if error.errno not in (errno.ENOENT, errno.ESRCH): raise |
| 92 # create the instance | 92 # create the instance |
| 93 init.install(self.dirname, 'templates/classic') | 93 init.install(self.dirname, 'templates/classic') |
| 94 init.write_select_db(self.dirname, 'anydbm') | 94 init.write_select_db(self.dirname, 'anydbm') |
| 95 init.initialise(self.dirname, 'sekrit') | 95 init.initialise(self.dirname, 'sekrit') |
| 96 | 96 |
| 97 # check we can load the package | 97 # check we can load the package |
| 98 self.instance = instance.open(self.dirname) | 98 self.instance = instance.open(self.dirname) |
| 99 | 99 |
| 100 # and open the database | 100 # and open the database |
| 101 self.db = self.instance.open('admin') | 101 self.db = self.instance.open('admin') |
