summaryrefslogtreecommitdiff
path: root/Mailman/testing/test_acknowledge.py
Commit message (Collapse)AuthorAgeFilesLines
* Simplify doctests by having just a single test_documentation.py module inBarry Warsaw2007-06-231-27/+0
| | | | | Mailman/testing. This introspects the Mailman/docs directory and adds DocFileSuites for all .txt files found there.
* Refactor tests to get consistent clean up behavior. The clean up sectionsBarry Warsaw2007-06-221-7/+2
| | | | | have been removed from the .txt files and instead added to the test harness, which all doctests now use.
* Remove both the model and interface for RosterSets. These are no longer usedBarry Warsaw2007-06-181-0/+32
or necessary in the current data model. Convert the test_handlers.py Python test to an acknowledge.txt doctest, and make the Acknowledge.py handler work with the new data model. There are a few XXX comments left in here due to the fact that the web stuff is a total hack in the current branch currently. Added IMailingListWeb methods and properties to the MailingList model class: web_host and script_url(). Work out how IMembers will expose the lookup-order based preferences. By getting the attribute IMember.preferences you can see exactly the preferences overridden by this member. To use the lookup order, use IMember.delivery_mode, IMember.acknowledge_posts, etc. IOW, the IMember interface now provides the properties directly and access through this mechanism supports lookup order with definitive preference values. Also added IMember.unsubscribe() which does the obvious, and IMember.options_url() which is a total hack for providing a url (but not the ultimately right one) for the user's option page. Refactor the model's roster classes. Also added IRoster.get_member() method with efficient queries to return the right results. Make AdministratorRoster.members more efficient due to a better query. Update the membership.txt doctest to eliminate a chance ordering effect, and also to test finding members with .get_member(). The clean up section uses the new .unsubscribe() method.