comparison test/test_mailgw.py @ 1176:bd3b57859c37

On second thought, that last checkin was dumb. The old, nasty, for-purely-historical-reasons journaltag-as-username has gone away now. The code should handle existing journaltag-as-username entries, but will use userid from now on.
author Richard Jones <richard@users.sourceforge.net>
date Fri, 20 Sep 2002 05:08:00 +0000
parents d77b86cc541b
children bc3bc3248dd1
comparison
equal deleted inserted replaced
1175:762f48bfbc0b 1176:bd3b57859c37
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.30 2002-09-12 04:21:20 richard Exp $ 11 # $Id: test_mailgw.py,v 1.31 2002-09-20 05:08:00 richard Exp $
12 12
13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib 13 import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib
14 14
15 # Note: Should parse emails according to RFC2822 instead of performing a 15 # Note: Should parse emails according to RFC2822 instead of performing a
16 # literal string comparision. Parsing the messages allows the tests to work for 16 # literal string comparision. Parsing the messages allows the tests to work for
77 init.install(self.dirname, 'classic', 'anydbm') 77 init.install(self.dirname, 'classic', 'anydbm')
78 init.initialise(self.dirname, 'sekrit') 78 init.initialise(self.dirname, 'sekrit')
79 # check we can load the package 79 # check we can load the package
80 self.instance = instance.open(self.dirname) 80 self.instance = instance.open(self.dirname)
81 # and open the database 81 # and open the database
82 self.db = self.instance.open('sekrit') 82 self.db = self.instance.open('admin')
83 self.db.user.create(username='Chef', address='chef@bork.bork.bork', 83 self.db.user.create(username='Chef', address='chef@bork.bork.bork',
84 roles='User') 84 roles='User')
85 self.db.user.create(username='richard', address='richard@test', 85 self.db.user.create(username='richard', address='richard@test',
86 roles='User') 86 roles='User')
87 self.db.user.create(username='mary', address='mary@test', 87 self.db.user.create(username='mary', address='mary@test',

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