Mercurial > p > roundup > code
comparison test/test_mailgw.py @ 3420:b854a6a08fff maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 07 Oct 2005 05:49:15 +0000 |
| parents | 246fed02a51e |
| children |
comparison
equal
deleted
inserted
replaced
| 3416:f9279aaa346c | 3420:b854a6a08fff |
|---|---|
| 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.73.2.2 2005-06-24 06:48:17 richard Exp $ | 11 # $Id: test_mailgw.py,v 1.73.2.3 2005-10-07 05:49:15 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 |
| 683 m = self.db.user.list() | 683 m = self.db.user.list() |
| 684 m.sort() | 684 m.sort() |
| 685 self.assertEqual(l, m) | 685 self.assertEqual(l, m) |
| 686 | 686 |
| 687 # now with the permission | 687 # now with the permission |
| 688 p = self.db.security.getPermission('Create', 'user') | 688 p = [ |
| 689 self.db.security.role['anonymous'].permissions=[p] | 689 self.db.security.getPermission('Create', 'user'), |
| 690 self.db.security.getPermission('Email Access', None), | |
| 691 ] | |
| 692 self.db.security.role['anonymous'].permissions=p | |
| 690 self._handle_mail(message) | 693 self._handle_mail(message) |
| 691 m = self.db.user.list() | 694 m = self.db.user.list() |
| 692 m.sort() | 695 m.sort() |
| 693 self.assertNotEqual(l, m) | 696 self.assertNotEqual(l, m) |
| 694 | 697 |
