summaryrefslogtreecommitdiff
path: root/Mailman/testing
diff options
context:
space:
mode:
authorBarry Warsaw2007-06-10 19:14:10 -0400
committerBarry Warsaw2007-06-10 19:14:10 -0400
commit2551bc7cac27c268bbfb05b735e223cad02d5c27 (patch)
tree2384ff5290ad9dde90d47b30a2f134905b913253 /Mailman/testing
parent5bc4941f0b749830d5e4feb57be5f172e77e0631 (diff)
downloadmailman-2551bc7cac27c268bbfb05b735e223cad02d5c27.tar.gz
mailman-2551bc7cac27c268bbfb05b735e223cad02d5c27.tar.zst
mailman-2551bc7cac27c268bbfb05b735e223cad02d5c27.zip
More test updates based on simplified data model. Rosters are gone so the
mlist-rosters.txt tests are removed. Give MailingList entities a Preferences foreign key, so that they now have preferences. Member.preferences(): Watch out for unlinked addresses, i.e. which have no user and thus no user preferences. Address.controls() takes a text email address, not an IAddress. UserManager: add create_address(), delete_address(), get_address(), and 'addresses' property. Updated the address.txt and user.txt doctests as needed. Added User.register() to register an email address and immediately link it to a user.
Diffstat (limited to 'Mailman/testing')
-rw-r--r--Mailman/testing/test_mlist_rosters.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/Mailman/testing/test_mlist_rosters.py b/Mailman/testing/test_mlist_rosters.py
deleted file mode 100644
index e8713b828..000000000
--- a/Mailman/testing/test_mlist_rosters.py
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (C) 2007 by the Free Software Foundation, Inc.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
-# USA.
-
-"""Doctest harness for the IMailingListRosters interface."""
-
-import doctest
-import unittest
-
-options = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE
-
-
-def test_suite():
- suite = unittest.TestSuite()
- suite.addTest(doctest.DocFileSuite('../docs/mlist-rosters.txt',
- optionflags=options))
- return suite