diff options
| author | Barry Warsaw | 2007-06-19 18:42:27 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-06-19 18:42:27 -0400 |
| commit | 3a86b40fe4e3b28c2d9f4e3bbd2cc0eeefe31453 (patch) | |
| tree | e7bb34c284974cb38fce21cc5ad0d28fc50a3a98 /Mailman/testing/test_cleanse.py | |
| parent | 0514aa46113f1f44dcf86f2d8ae6f86b71e88a3d (diff) | |
| download | mailman-3a86b40fe4e3b28c2d9f4e3bbd2cc0eeefe31453.tar.gz mailman-3a86b40fe4e3b28c2d9f4e3bbd2cc0eeefe31453.tar.zst mailman-3a86b40fe4e3b28c2d9f4e3bbd2cc0eeefe31453.zip | |
Diffstat (limited to 'Mailman/testing/test_cleanse.py')
| -rw-r--r-- | Mailman/testing/test_cleanse.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Mailman/testing/test_cleanse.py b/Mailman/testing/test_cleanse.py new file mode 100644 index 000000000..97ad9c46c --- /dev/null +++ b/Mailman/testing/test_cleanse.py @@ -0,0 +1,32 @@ +# 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 Cleanse handler.""" + +import doctest +import unittest + +options = (doctest.ELLIPSIS + | doctest.NORMALIZE_WHITESPACE + | doctest.REPORT_NDIFF) + + +def test_suite(): + suite = unittest.TestSuite() + suite.addTest(doctest.DocFileSuite('../docs/cleanse.txt', + optionflags=options)) + return suite |
