summaryrefslogtreecommitdiff
path: root/src/mailman/rules/tests/test_dmarc.py
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright years.Barry Warsaw2017-01-041-1/+1
|
* Make code style review pass.Barry Warsaw2017-01-041-19/+19
|
* Made some argument names more descriptive and consistent.Mark Sapiro2017-01-021-35/+60
| | | | Improved the CNAME tests to provide testable results.
* Some configs moved to [dmarc] section.Mark Sapiro2017-01-011-1/+1
|
* Merge branch 'mr215' into mr215-reviewBarry Warsaw2017-01-011-12/+172
|\
| * Test coverage improvements.Mark Sapiro2017-01-011-12/+175
| | | | | | | | Replaced unreachable statement with assertion.
| * Replaced urllib.request.urlopen() with mailman.utilities.protocols.get().Mark Sapiro2017-01-011-6/+6
| |
* | Add some coverage.Barry Warsaw2017-01-011-0/+12
| | | | | | | | | | | | * parse_suffix_list() can take an optional filename for testing purposes. * Fix a typo. * Add a test.
* | Implement caching suffix list with in-tree fallback.Barry Warsaw2017-01-011-44/+170
|/ | | | | | | | Also: * Change doctest cleanups to be an ExitStack. * Added [dmarc]cache_lifetime setting. * Cleanup pass through dmarc-mitigation.rst. * Be sure the cached org domain file is cleaned up when the world is reset.
* Moved test data from rules/data to rules/tests/data.Mark Sapiro2016-12-311-7/+3
| | | | Get path using pkg_resources.resource_filename.
* Fixed location of 'with' in a test.Mark Sapiro2016-12-311-8/+9
| | | | Removed unneeded 'as' clauses.
* Simplified the org domain mock patch and tweaked a test.Mark Sapiro2016-12-311-17/+11
|
* Small style fixes.Barry Warsaw2016-12-311-2/+25
| | | | | | | * Split the email using .rpartition(). * Use a sentinel singleton for a marker instead of a string. * Move some code out of a try clause and eliminate an else clause for coverage. * Boost coverage by mocking a DNSException.
* Added test data for organizational domains and a mock to use it.Mark Sapiro2016-12-301-10/+39
| | | | Made a few test coverage tweaks.
* Boost coverage.Barry Warsaw2016-12-301-1/+16
|
* Improve coverage for rules/dmarc.py.Barry Warsaw2016-12-301-11/+20
|
* Minor tweaks and coverage:Barry Warsaw2016-12-301-0/+15
| | | | | | | * Format and wrap a comment. * Add a test for having two From: headers. * use <alpha@example.com> as standard Message-ID * Cover URLError case.
* Removed unreachable line from rules/dmarc.py.Mark Sapiro2016-12-301-2/+31
| | | | Added tests to improve coverage.
* Replaced mailman.public with public.public.Mark Sapiro2016-12-091-1/+1
| | | | | Simplified Munge From replacement and added a test for rfc2047 encoded display name.
* Added mocking of DNS _dmarc lookups and modified test accordingly.Mark Sapiro2016-11-111-0/+81