summaryrefslogtreecommitdiff
path: root/Mailman/testing/test_cleanse.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-06-22 17:15:03 -0400
committerBarry Warsaw2007-06-22 17:15:03 -0400
commitd629fe4305a062a62eb77d12d8847b7e405ff5e6 (patch)
treea7bdda181b945ba86afeb89a2439f1836453bdd1 /Mailman/testing/test_cleanse.py
parentfba4983f88e0305a32e3135d129621890bf9adde (diff)
downloadmailman-d629fe4305a062a62eb77d12d8847b7e405ff5e6.tar.gz
mailman-d629fe4305a062a62eb77d12d8847b7e405ff5e6.tar.zst
mailman-d629fe4305a062a62eb77d12d8847b7e405ff5e6.zip
Refactor tests to get consistent clean up behavior. The clean up sections
have been removed from the .txt files and instead added to the test harness, which all doctests now use.
Diffstat (limited to 'Mailman/testing/test_cleanse.py')
-rw-r--r--Mailman/testing/test_cleanse.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Mailman/testing/test_cleanse.py b/Mailman/testing/test_cleanse.py
index 97ad9c46c..e058c7bfa 100644
--- a/Mailman/testing/test_cleanse.py
+++ b/Mailman/testing/test_cleanse.py
@@ -17,16 +17,11 @@
"""Doctest harness for the Cleanse handler."""
-import doctest
import unittest
-
-options = (doctest.ELLIPSIS
- | doctest.NORMALIZE_WHITESPACE
- | doctest.REPORT_NDIFF)
+from Mailman.testing.base import make_docfile_suite
def test_suite():
suite = unittest.TestSuite()
- suite.addTest(doctest.DocFileSuite('../docs/cleanse.txt',
- optionflags=options))
+ suite.addTest(make_docfile_suite('../docs/cleanse.txt'))
return suite