diff options
| author | Barry Warsaw | 2012-03-17 12:54:26 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-17 12:54:26 -0400 |
| commit | 8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29 (patch) | |
| tree | 4d107a8b995f113feed454bd8662986cff8888ba /src/mailman/pipeline/tests/test_scrubber.py | |
| parent | 5aa8f097f1d7a96500ccd2ccfa2fedd6ac830786 (diff) | |
| parent | 24991d17919f2715a7f2e875d2fb7fe72e53efcf (diff) | |
| download | mailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.tar.gz mailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.tar.zst mailman-8e6cca71e8b6b0e79394aaf2c1d13d7cfce41c29.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') |
