diff options
| author | Barry Warsaw | 2012-03-16 15:58:17 -0700 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-16 15:58:17 -0700 |
| commit | 24991d17919f2715a7f2e875d2fb7fe72e53efcf (patch) | |
| tree | 80624655bf271f103f76377d9b09ce2ff0562dbb /src/mailman/pipeline/tests/test_scrubber.py | |
| parent | 44ec37f890c7d4d35504d8f2e56c01abe8c60940 (diff) | |
| download | mailman-24991d17919f2715a7f2e875d2fb7fe72e53efcf.tar.gz mailman-24991d17919f2715a7f2e875d2fb7fe72e53efcf.tar.zst mailman-24991d17919f2715a7f2e875d2fb7fe72e53efcf.zip | |
Diffstat (limited to 'src/mailman/pipeline/tests/test_scrubber.py')
| -rw-r--r-- | src/mailman/pipeline/tests/test_scrubber.py | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mailman/pipeline/tests/test_scrubber.py b/src/mailman/pipeline/tests/test_scrubber.py deleted file mode 100644 index 7ac5eb855..000000000 --- a/src/mailman/pipeline/tests/test_scrubber.py +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright (C) 2012 by the Free Software Foundation, Inc. -# -# This file is part of GNU Mailman. -# -# GNU Mailman 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 3 of the License, or (at your option) -# any later version. -# -# GNU Mailman 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 -# GNU Mailman. If not, see <http://www.gnu.org/licenses/>. - -"""Scrubber module tests.""" - -from __future__ import absolute_import, print_function, unicode_literals - -__metaclass__ = type -__all__ = [ - 'TestScrubber', - ] - - -import unittest - -from mailman.pipeline import scrubber - - - -class TestScrubber(unittest.TestCase): - """Scrubber module tests.""" - - def test_guess_extension(self): - # A known extension should be found. - extension = scrubber.guess_extension('application/msword', '.doc') - self.assertEqual(extension, '.doc') - - def test_guess_missing_extension(self): - # Maybe some other extension is better. - extension = scrubber.guess_extension('application/msword', '.xxx') - self.assertEqual(extension, '.doc') |
