~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/model/tests/test_user.py

  • Committer: Barry Warsaw
  • Date: 2011-08-18 00:39:11 UTC
  • mfrom: (7036.1.4 bug-827036)
  • Revision ID: barry@list.org-20110818003911-9gef1p84g2pg4p10
 * Four new events are created, and notifications are sent during mailing list
   lifecycle changes:
   - ListCreatingEvent - sent before the mailing list is created
   - ListCreatedEvent  - sent after the mailing list is created
   - ListDeletingEvent - sent before the mailing list is deleted
   - ListDeletedEvent  - sent after the mailing list is deleted
 * Using the above events, when a mailing list is deleted, all its members are
   deleted, as well as all held message requests (but not the held messages
   themselves).  (LP: 827036)

Also: relax the find_member() argument constraints so that even the subscriber
email address is optional.  This is mirrored in the REST API's
.../members/find resource.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
import unittest
29
29
 
 
30
from zope.component import getUtility
 
31
 
30
32
from mailman.app.lifecycle import create_list
31
33
from mailman.interfaces.usermanager import IUserManager
32
34
from mailman.testing.layers import ConfigLayer
33
35
from mailman.utilities.datetime import now
34
36
 
35
 
from zope.component import getUtility
36
 
 
37
37
 
38
38
 
39
39
class TestUser(unittest.TestCase):