~abompard/mailman/subpolicy

« back to all changes in this revision

Viewing changes to src/mailman/commands/tests/test_lists.py

  • Committer: Barry Warsaw
  • Date: 2015-04-07 02:06:28 UTC
  • mfrom: (7313.2.6 lp1423756)
  • mto: This revision was merged to the branch mainline in revision 7323.
  • Revision ID: barry@list.org-20150407020628-fkwphij7to9lc8gy
 * Domains now have a list of owners, which are ``IUser`` objects, instead of
   the single ``contact_address`` they used to have.  ``IUser`` objects now
   also have a ``is_server_owner`` flag (defaulting to False) to indicate
   whether they have superuser privileges.  Give by Abhliash Raj, with fixes
   and refinements by Barry Warsaw.  (LP: #1423756)

 * Domains can now optionally be created with owners; domain owners can be
   added after the fact; domain owners can be deleted.  Also, users now have
   an ``is_server_owner`` flag as part of their representation, which defaults
   to False, and can be PUT and PATCH'd.  Given by Abhilash Raj, with fixes
   and refinements by Barry Warsaw.  (LP: #1423756)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        # LP: #1166911 - non-matching lists were returned.
49
49
        getUtility(IDomainManager).add(
50
50
            'example.net', 'An example domain.',
51
 
            'http://lists.example.net', 'postmaster@example.net')
 
51
            'http://lists.example.net')
52
52
        create_list('test1@example.com')
53
53
        create_list('test2@example.com')
54
54
        # Only this one should show up.